Future
object, preserving compatability with the business interface signature.
The value specified in the constructor will be retrieved by the container and made available to the client.
Note that this object is not passed to the client. It is merely a convenience for providing the result value to the container. Therefore, none of its instance methods should be called by the application.
| Modifier and Type | Field and Description |
|---|---|
| private final V |
| Access | Constructor and Description |
|---|---|
| public | AsyncResult(V
the result of an asynchronous method call to be made
available to the client result)Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | cancel(boolean
true if the thread
executing this task should be interrupted (if the thread is
known to the implementation); otherwise, in-progress tasks are
allowed to completeImplements java. |
| public V | |
| public V | get(long
the maximum time to wait timeout, TimeUnit the time unit of the timeout argument unit)Implements java. |
| public boolean | |
| public boolean |
| resultValue | back to summary |
|---|---|
| private final V resultValue | |
| AsyncResult | back to summary |
|---|---|
| public AsyncResult(V result) Creates a
| |
| cancel | back to summary |
|---|---|
| public boolean cancel(boolean mayInterruptIfRunning) Implements java. This method should not be called. See Class-level comments.
| |
| get | back to summary |
|---|---|
| public V get() throws InterruptedException, ExecutionException Implements java. This method should not be called. See Class-level comments.
| |
| get | back to summary |
|---|---|
| public V get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException Implements java. This method should not be called. See Class-level comments.
| |
| isCancelled | back to summary |
|---|---|
| public boolean isCancelled() Implements java. This method should not be called. See Class-level comments.
| |
| isDone | back to summary |
|---|---|
| public boolean isDone() Implements java. This method should not be called. See Class-level comments.
| |