Class PlainListenableActionFuture<T>

    • Constructor Detail

      • PlainListenableActionFuture

        protected PlainListenableActionFuture()
    • Method Detail

      • newListenableFuture

        public static <T> PlainListenableActionFuture<T> newListenableFuture()
        This method returns a listenable future. The listeners will be called on completion of the future. The listeners will be executed by the same thread that completes the future.
        Type Parameters:
        T - the result of the future
        Returns:
        a listenable future
      • newDispatchingListenableFuture

        public static <T> PlainListenableActionFuture<T> newDispatchingListenableFuture​(ThreadPool threadPool)
        This method returns a listenable future. The listeners will be called on completion of the future. The listeners will be executed on the LISTENER thread pool.
        Type Parameters:
        T - the result of the future
        Parameters:
        threadPool - the thread pool used to execute listeners
        Returns:
        a listenable future