Class CompletingFutureContribution<T,U>
java.lang.Object
org.apache.hc.core5.concurrent.FutureContribution<T>
org.apache.hc.core5.concurrent.CompletingFutureContribution<T,U>
- Type Parameters:
T- the future result type of an asynchronous operation for this type.U- the future result type of an asynchronous operation for theFutureCallback.
- All Implemented Interfaces:
FutureCallback<T>
Completes a result on a
BasicFuture.- Since:
- 5.4
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCompletingFutureContribution(BasicFuture<U> future) Constructs a new instance to callback the givenBasicFuture.CompletingFutureContribution(BasicFuture<U> future, Function<T, U> resultProvider) Constructs a new instance to callback the givenBasicFuture. -
Method Summary
Methods inherited from class FutureContribution
cancelled, failed, getFuture
-
Field Details
-
resultProvider
-
-
Constructor Details
-
CompletingFutureContribution
Constructs a new instance to callback the givenBasicFuture.- Parameters:
future- The callback.
-
CompletingFutureContribution
Constructs a new instance to callback the givenBasicFuture.- Parameters:
future- The callback.resultProvider- Provides the result to complete the future.
-
-
Method Details
-
completed
-