Package org.threadly.concurrent.future
Interface ListenableRunnableFuture<T>
-
- Type Parameters:
T
- The result object type returned by this future
- All Superinterfaces:
java.util.concurrent.Future<T>
,ListenableFuture<T>
,java.lang.Runnable
,java.util.concurrent.RunnableFuture<T>
- All Known Implementing Classes:
ExecuteOnGetFutureTask
,ListenableFutureAdapterTask
,ListenableFutureTask
public interface ListenableRunnableFuture<T> extends ListenableFuture<T>, java.util.concurrent.RunnableFuture<T>
This is aListenableFuture
which can be executed. Allowing you to construct the future with the interior work, submit it to anExecutor
, and then return this future.This is similar to
RunnableFuture
except that it provides the additional functionality from theListenableFuture
interface.- Since:
- 1.0.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.threadly.concurrent.future.ListenableFuture
ListenableFuture.ListenerOptimizationStrategy
-
-
Method Summary
-
Methods inherited from interface org.threadly.concurrent.future.ListenableFuture
callback, callback, callback, failureCallback, failureCallback, failureCallback, flatMap, flatMap, flatMap, flatMap, flatMapFailure, flatMapFailure, flatMapFailure, getFailure, getFailure, getRunningStackTrace, isCompletedExceptionally, listener, listener, listener, map, map, map, mapFailure, mapFailure, mapFailure, resultCallback, resultCallback, resultCallback, throwMap, throwMap, throwMap
-
-