Class Operations.CompletedFuture<T>
java.lang.Object
org.apache.hc.client5.http.impl.Operations.CompletedFuture<T>
- Type Parameters:
T- operation result representation.
- All Implemented Interfaces:
Future<T>
- Enclosing class:
Operations
Deprecated.
This class represents a
Future in the completed state with a fixed result.
The outcome of the future cannot be altered and it cannot be cancelled.- Since:
- 5.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface Future
Future.State -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Future
exceptionNow, resultNow, state
-
Field Details
-
result
Deprecated.
-
-
Constructor Details
-
CompletedFuture
Deprecated.
-
-
Method Details
-
get
Deprecated.- Specified by:
getin interfaceFuture<T>- Throws:
InterruptedExceptionExecutionException
-
get
public T get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException Deprecated.- Specified by:
getin interfaceFuture<T>- Throws:
InterruptedExceptionExecutionExceptionTimeoutException
-
cancel
-
isCancelled
-
isDone
-
CompletedFuture.