Class FutureWrapper<T>
java.lang.Object
org.apache.http.impl.nio.client.FutureWrapper<T>
- All Implemented Interfaces:
Future<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.apache.http.concurrent.Cancellable -
Constructor Summary
ConstructorsConstructorDescriptionFutureWrapper(Future<T> future, org.apache.http.concurrent.Cancellable cancellable) -
Method Summary
-
Field Details
-
future
-
cancellable
private final org.apache.http.concurrent.Cancellable cancellable
-
-
Constructor Details
-
FutureWrapper
-
-
Method Details
-
cancel
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceFuture<T>
-
isDone
-
get
- Specified by:
getin interfaceFuture<T>- Throws:
InterruptedExceptionExecutionException
-
get
public T get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException - Specified by:
getin interfaceFuture<T>- Throws:
InterruptedExceptionExecutionExceptionTimeoutException
-
toString
-