Constructor and Description |
---|
SmartFuture() |
Modifier and Type | Method and Description |
---|---|
boolean |
cancel(boolean mayInterruptIfRunning) |
V |
get() |
V |
get(long timeout,
TimeUnit unit) |
void |
invoke(V result) |
boolean |
isCancelled() |
boolean |
isDone() |
void |
onCompletion(Action<V> callback) |
void |
wrap(Future<V> innerFuture) |
public boolean cancel(boolean mayInterruptIfRunning)
public boolean isCancelled()
isCancelled
in interface Future<V>
public V get() throws InterruptedException, ExecutionException
get
in interface Future<V>
InterruptedException
ExecutionException
public V get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
get
in interface Future<V>
InterruptedException
ExecutionException
TimeoutException
Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly