Package org.apache.hc.core5.concurrent
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 java.lang.Object implements FutureCallback<T>
Convenience base class forFutureCallback
s that contribute a result of the operation to anotherFutureCallback
.- Since:
- 5.1
-
-
Field Summary
Fields Modifier and Type Field Description private FutureCallback<?>
callback
-
Constructor Summary
Constructors Constructor Description CallbackContribution(FutureCallback<?> callback)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cancelled()
void
failed(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
-
callback
private final FutureCallback<?> callback
-
-
Constructor Detail
-
CallbackContribution
public CallbackContribution(FutureCallback<?> callback)
-
-
Method Detail
-
failed
public final void failed(java.lang.Exception ex)
- Specified by:
failed
in interfaceFutureCallback<T>
-
cancelled
public final void cancelled()
- Specified by:
cancelled
in interfaceFutureCallback<T>
-
-