T - The result type returned by this Future's get method.@Deprecated public class SimpleFuture<T> extends Object
| Constructor | Description |
|---|---|
SimpleFuture(Callable<T> callable) |
Deprecated.
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
cancel(boolean mayInterruptIfRunning) |
Deprecated.
|
protected void |
done() |
Deprecated.
|
T |
get() |
Deprecated.
|
T |
get(long timeout,
TimeUnit unit) |
Deprecated.
|
boolean |
isCancelled() |
Deprecated.
|
void |
run() |
Deprecated.
|
public boolean isCancelled()
public boolean cancel(boolean mayInterruptIfRunning)
public T get() throws InterruptedException
InterruptedExceptionpublic T get(long timeout, TimeUnit unit) throws InterruptedException
InterruptedExceptionpublic void run()
protected void done()