Class ComplexFuture<T>
java.lang.Object
org.apache.hc.core5.concurrent.BasicFuture<T>
org.apache.hc.core5.concurrent.ComplexFuture<T>
- Type Parameters:
T- the future result type of an asynchronous operation.
- All Implemented Interfaces:
Future<T>, Cancellable, CancellableDependency
Future whose result depends on another Cancellable process
or operation or another Future. Dependent process will get cancelled
if the future itself is cancelled.- Since:
- 5.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface Future
Future.State -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancancel(boolean mayInterruptIfRunning) booleanbooleanvoidsetDependency(Future<?> dependency) voidsetDependency(Cancellable dependency) SetsCancellabledependency on another ongoing process or operation represented byCancellable.Methods inherited from class BasicFuture
cancel, get, get, isCancelled, isDoneMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Cancellable
cancelMethods inherited from interface CancellableDependency
isCancelledMethods inherited from interface Future
exceptionNow, resultNow, state
-
Field Details
-
dependencyRef
-
-
Constructor Details
-
ComplexFuture
-
-
Method Details
-
setDependency
Description copied from interface:CancellableDependencySetsCancellabledependency on another ongoing process or operation represented byCancellable.- Specified by:
setDependencyin interfaceCancellableDependency- Parameters:
dependency- another ongoing process or operation.
-
setDependency
-
completed
- Overrides:
completedin classBasicFuture<T>
-
failed
- Overrides:
failedin classBasicFuture<T>
-
cancel
-