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>
InterruptedException
ExecutionException
public T get(long timeout, TimeUnit timeunit) throws InterruptedException, ExecutionException, TimeoutException
get
in interface Future<T>
InterruptedException
ExecutionException
TimeoutException
public boolean isCancelled()
isCancelled
in interface Future<T>
Copyright © 2019. All rights reserved.