Uses of Class
com.tccc.kos.commons.util.concurrent.future.FutureWork
Packages that use FutureWork
Package
Description
-
Uses of FutureWork in com.tccc.kos.commons.core.service.trouble
Methods in com.tccc.kos.commons.core.service.trouble that return FutureWorkModifier and TypeMethodDescriptionTrouble.resolve()If resolvable, return the work to perform to potentially resolve the underlying problem that caused the trouble.Resolves a trouble.TroubleService.resolve(Collection<Trouble> troubles) Resolves a list of troubles and wrap it all up in a single future. -
Uses of FutureWork in com.tccc.kos.commons.util.concurrent.future
Subclasses of FutureWork in com.tccc.kos.commons.util.concurrent.futureModifier and TypeClassDescriptionclassA future that immediately fails when started.classAllows a collection of individual futures to be run in parallel, where the overall state ofParallelFuturereflects the result of the child futures.classAllows a list of individual futures to be run in sequence, where the overall state ofSequencedFuturereflects the result of the sequence.Methods in com.tccc.kos.commons.util.concurrent.future that return FutureWorkModifier and TypeMethodDescriptionFutureWork.append(String name, FutureEvent event, FutureRunnable callback) Appends an event callback.FutureWork.getRootFuture()Return the root future of the graph.FutureWork.prepend(String name, FutureEvent event, FutureRunnable callback) Prepends an event callback.Removes any and all callbacks with the specified name.Sets optional data associated with the work.FutureWork.setEstimatedTimeMs(long estimatedTimeMs) Sets the total estimated time of the operation in milliseconds.FutureWork.setRemainingTimeMs(long remainingTimeMs) Updates the estimated time of the operation with the amount of time remaining.FutureWork.setRunnable(FutureRunnable runnable) Sets therunnableto be performed by the work.ParallelFuture.setRunnable(FutureRunnable runnable) SequencedFuture.setRunnable(FutureRunnable runnable) FutureWork.setTimeout(long delay) Adds a timeout to the work.FutureWork.setTimeout(long delay, FutureRunnable callback) Adds a timeout to the work that will call the specified callback.FutureWork.setTimeout(long delay, String reason) Adds a timeout to the work.Methods in com.tccc.kos.commons.util.concurrent.future with parameters of type FutureWorkModifier and TypeMethodDescriptionvoidParallelFuture.add(FutureWork future) Adds a future to the collection.voidSequencedFuture.add(int index, FutureWork future) Adds a future to the specified location in the sequence followingListsemantics for insertion.voidSequencedFuture.add(FutureWork future) Adds a future to the sequence.voidFutureRunnable.run(FutureWork future) Calls the specified function with access to the associated future.voidFutureWork.setParent(FutureWork future) Sets the parent of this future. -
Uses of FutureWork in com.tccc.kos.core.primary.service.nodemgr
Methods in com.tccc.kos.core.primary.service.nodemgr that return FutureWorkModifier and TypeMethodDescriptionNodeMgrService.deviceInstall(DeviceInstallBuilder installBuilder, boolean activate) Install the specified builder onto the device. -
Uses of FutureWork in com.tccc.kos.core.primary.service.update
Methods in com.tccc.kos.core.primary.service.update that return FutureWorkModifier and TypeMethodDescriptionUpdateService.installUpdate(String manifestId, File dir) Install an update with the specified manifestId from the specified directory.UpdateService.installUpdate(String manifestId, String deviceId) Install an update with the specified manifestId on the storage device with the specified deviceId. -
Uses of FutureWork in com.tccc.kos.core.service.firmware
Methods in com.tccc.kos.core.service.firmware that return FutureWorkModifier and TypeMethodDescriptionFirmwareUpdater.update(UpdateTask task) Performs the actual update associated with theUpdateTaskthat was returned fromcheckForUpdate().