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 aListenableFuture
which can be executed. -
Class Summary Class Description CancelDebuggingListenableFuture<T> Wrapper for aListenableFuture
to provide enhanced features for debugging the state at which at which it was canceled.CompletableFutureAdapter This class helps in converting between threadly'sListenableFuture
and 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 ofListenableFuture
that will immediately provide a failure condition.ImmediateResultListenableFuture<T> Completed implementation ofListenableFuture
that will immediately return a result.ListenableFutureAdapterTask<T> Adapter from java'sFuture
to 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.