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>
Abstracts implementations of
FutureCallbacks that contribute a result
of the operation to another FutureCallback.- Since:
- 5.1
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCallbackContribution(FutureCallback<?> callback) Constructs a new instance for a FutureCallback. -
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
-
callback
-
-
Constructor Details
-
CallbackContribution
Constructs a new instance for a FutureCallback.- Parameters:
callback- the FutureCallback, may benull.
-
-
Method Details
-
failed
- Specified by:
failedin interfaceFutureCallback<T>
-
cancelled
public final void cancelled()- Specified by:
cancelledin interfaceFutureCallback<T>
-