Interface CallableContainer<T>

  • Type Parameters:
    T - Type for type of callable contained
    All Known Implementing Classes:
    ExecuteOnGetFutureTask, ListenableFutureAdapterTask, ListenableFutureTask

    public interface CallableContainer<T>
    Interface to implement if any classes are containing a callable. This interface must be implemented in order for the PriorityScheduler (and others) remove function to work correctly if that wrapper is ever provided to the thread pool.
    Since:
    4.3.0 (since 1.0.0 as CallableContainerInterface)
    • Method Detail

      • getContainedCallable

        java.util.concurrent.Callable<T> getContainedCallable()
        Call to get the contained callable held within the wrapper.
        Returns:
        callable contained within wrapper, or null if none is contained