Package org.apache.hc.core5.concurrent
Class FutureContribution<T>
- java.lang.Object
-
- org.apache.hc.core5.concurrent.FutureContribution<T>
-
- Type Parameters:
T- the future result type of an asynchronous operation.
- All Implemented Interfaces:
FutureCallback<T>
public abstract class FutureContribution<T> extends java.lang.Object implements FutureCallback<T>
Convenience base class forFutureCallbacks that contribute a result of the operation to anotherBasicFuture.- Since:
- 5.1
-
-
Field Summary
Fields Modifier and Type Field Description private BasicFuture<?>future
-
Constructor Summary
Constructors Constructor Description FutureContribution(BasicFuture<?> future)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcancelled()voidfailed(java.lang.Exception ex)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.hc.core5.concurrent.FutureCallback
completed
-
-
-
-
Field Detail
-
future
private final BasicFuture<?> future
-
-
Constructor Detail
-
FutureContribution
public FutureContribution(BasicFuture<?> future)
-
-
Method Detail
-
failed
public final void failed(java.lang.Exception ex)
- Specified by:
failedin interfaceFutureCallback<T>
-
cancelled
public final void cancelled()
- Specified by:
cancelledin interfaceFutureCallback<T>
-
-