Class CallbackContribution<T>

java.lang.Object
org.apache.hc.core5.concurrent.CallbackContribution<T>
Type Parameters:
T - the future result type of an asynchronous operation.
All Implemented Interfaces:
FutureCallback<T>

public abstract class CallbackContribution<T> extends Object implements FutureCallback<T>
Abstracts implementations of FutureCallbacks that contribute a result of the operation to another FutureCallback.
Since:
5.1
  • Field Details

  • Constructor Details

    • CallbackContribution

      public CallbackContribution(FutureCallback<?> callback)
      Constructs a new instance for a FutureCallback.
      Parameters:
      callback - the FutureCallback, may be null.
  • Method Details