Package com.tccc.kos.commons.util.concurrent.future
package com.tccc.kos.commons.util.concurrent.future
-
ClassDescriptionA future that simply delays for the specified duration but is interruptable.A future that immediately fails when started.Types of
FutureWorkcallback events.A functional interface for associating runnable code with a future, whether the primary code of the future or callbacks based on future events.PossibleFutureWorkstates, which are: SUCCESS: the operation successfully ran to completion FAIL: the operation ran to completion but failed CANCEL: the operation was cancelled by the user ABORT: the operation was aborted by the softwareThis is the KOS equivalent of Java'sFutureTask.Allows a collection of individual futures to be run in parallel, where the overall state ofParallelFuturereflects the result of the child futures.Allows a list of individual futures to be run in sequence, where the overall state ofSequencedFuturereflects the result of the sequence.