Class FutureContribution<T>
java.lang.Object
org.apache.hc.core5.concurrent.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
Convenience base class for
FutureCallbacks that contribute a result
of the operation to another BasicFuture.- Since:
- 5.1
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFutureContribution(BasicFuture<?> future) Constructs a new instance to callback the givenBasicFuture. -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface FutureCallback
completed
-
Field Details
-
future
-
-
Constructor Details
-
FutureContribution
Constructs a new instance to callback the givenBasicFuture.- Parameters:
future- The callback, non-null.
-
-
Method Details
-
failed
- Specified by:
failedin interfaceFutureCallback<T>
-
cancelled
public final void cancelled()- Specified by:
cancelledin interfaceFutureCallback<T>
-
getFuture
-