Package org.apache.http.impl.nio.client
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
public boolean cancel(boolean mayInterruptIfRunning) -
isCancelled
public boolean isCancelled()- Specified by:
isCancelled
in interfaceFuture<T>
-
isDone
public boolean isDone() -
get
- Specified by:
get
in interfaceFuture<T>
- Throws:
InterruptedException
ExecutionException
-
get
public T get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException - Specified by:
get
in interfaceFuture<T>
- Throws:
InterruptedException
ExecutionException
TimeoutException
-
toString
-