| Constructor and Description |
|---|
WrappedFuture(Future<T> f,
Discardable<?> d) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancel(boolean arg0) |
T |
get() |
T |
get(long timeout,
TimeUnit timeunit) |
boolean |
isCancelled() |
boolean |
isDone() |
public WrappedFuture(Future<T> f, Discardable<?> d)
public T get() throws InterruptedException, ExecutionException
get in interface Future<T>InterruptedExceptionExecutionExceptionpublic T get(long timeout, TimeUnit timeunit) throws InterruptedException, ExecutionException, TimeoutException
get in interface Future<T>InterruptedExceptionExecutionExceptionTimeoutExceptionpublic boolean isCancelled()
isCancelled in interface Future<T>Copyright © 2009-2015 The Apache Software Foundation. All Rights Reserved.