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 a ListenableFuture which can be executed. Allowing you to construct the future with the interior work, submit it to an Executor, and then return this future.

    This is similar to RunnableFuture except that it provides the additional functionality from the ListenableFuture interface.

    Since:
    1.0.0