Class ListenableFutureCallbackRegistry<T>

  • Type Parameters:
    T - the callback result type

    public class ListenableFutureCallbackRegistry<T>
    extends Object
    Helper class for ListenableFuture implementations that maintains a of success and failure callbacks and helps to notify them.

    Inspired by com.google.common.util.concurrent.ExecutionList.

    Since:
    4.0
    Author:
    Arjen Poutsma, Sebastien Deleuze, Rossen Stoyanchev