Package org.threadly.concurrent.future
Implementations of different futures as well as utilities for handling futures.
-
Interface Summary Interface Description FutureCallback<T> Callback for accepting the results of a future once the future has completed.ListenableFuture<T> Future where you can add a listener which is called once the future has completed.ListenableRunnableFuture<T> This is aListenableFuturewhich can be executed. -
Class Summary Class Description CancelDebuggingListenableFuture<T> Wrapper for aListenableFutureto provide enhanced features for debugging the state at which at which it was canceled.CompletableFutureAdapter This class helps in converting between threadly'sListenableFutureand java's providedCompletableFuture.ExecuteOnGetFutureTask<T> This future task has a special ability to start execution in the thread requesting theExecuteOnGetFutureTask.get()IF it has not already started.FutureUtils A collection of small utilities for handling futures.ImmediateFailureListenableFuture<T> Completed implementation ofListenableFuturethat will immediately provide a failure condition.ImmediateResultListenableFuture<T> Completed implementation ofListenableFuturethat will immediately return a result.ListenableFutureAdapterTask<T> Adapter from java'sFutureto threadly'sListenableFuture.ListenableFutureTask<T> This is a future which can be executed.SettableListenableFuture<T> This class is designed to be a helper when returning a single result asynchronously. -
Enum Summary Enum Description ListenableFuture.ListenerOptimizationStrategy Strategy to use for optimizing listener execution. -
Exception Summary Exception Description CancelDebuggingListenableFuture.FutureProcessingStack Throwable that is not thrown, but instead added as a cause to indicate the processing stack trace at the time of cancellation.