T
- The result type returned by this Future’s get method.@Deprecated
public class SimpleFuture<T>
extends java.lang.Object
A Future represents the result of an asynchronous computation.
Constructor and Description |
---|
SimpleFuture(java.util.concurrent.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,
java.util.concurrent.TimeUnit unit)
Deprecated.
|
boolean |
isCancelled()
Deprecated.
|
void |
run()
Deprecated.
|
public SimpleFuture(java.util.concurrent.Callable<T> callable)
public boolean isCancelled()
public boolean cancel(boolean mayInterruptIfRunning)
public T get() throws java.lang.InterruptedException
java.lang.InterruptedException
public T get(long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException
java.lang.InterruptedException
public void run()
protected void done()