T
- public static class DefaultParallelismStrategy.FutureWrapper<T> extends Object implements Promise<T>
Constructor and Description |
---|
FutureWrapper(Future<T> f)
Create an instance of FutureWrapper.
|
Modifier and Type | Method and Description |
---|---|
boolean |
cancel(boolean mayInterruptIfRunning) |
T |
get() |
T |
get(long timeout,
@NotNull TimeUnit unit) |
boolean |
isCancelled() |
boolean |
isDone() |
public boolean cancel(boolean mayInterruptIfRunning)
public boolean isCancelled()
isCancelled
in interface Future<T>
public T get() throws InterruptedException, ExecutionException
get
in interface Future<T>
InterruptedException
ExecutionException
public T get(long timeout, @NotNull @NotNull TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
get
in interface Future<T>
InterruptedException
ExecutionException
TimeoutException
GridGain In-Memory Computing Platform : ver. 8.9.14 Release Date : November 5 2024