T - The result type returned by this Future’s get method.@Deprecated public class SimpleFuture<T> extends Object
A Future represents the result of an asynchronous computation.
| Constructor and Description |
|---|
SimpleFuture(Callable<T> callable)
Deprecated.
|
| Modifier and Type | Method and 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()