Class FutureContribution<T>

  • Type Parameters:
    T - the future result type of an asynchronous operation for this type.
    All Implemented Interfaces:
    FutureCallback<T>
    Direct Known Subclasses:
    CompletingFutureContribution

    public abstract class FutureContribution<T>
    extends java.lang.Object
    implements FutureCallback<T>
    Convenience base class for FutureCallbacks that contribute a result of the operation to another BasicFuture.
    Since:
    5.1
    • Constructor Detail

      • FutureContribution

        public FutureContribution​(BasicFuture<?> future)
        Constructs a new instance to callback the given BasicFuture.
        Parameters:
        future - The callback, non-null.