public class FutureResult<V> extends Object implements Future<V>, InvocationService.ResultListener
FutureTask.| Constructor and Description |
|---|
FutureResult() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancel(boolean mayInterruptIfRunning) |
V |
get() |
V |
get(long timeout,
TimeUnit unit) |
boolean |
isCancelled() |
boolean |
isDone() |
void |
requestFailed(String cause)
Called to report request failure.
|
void |
requestProcessed(Object result)
Indicates that the request was successfully processed.
|
public boolean cancel(boolean mayInterruptIfRunning)
public boolean isCancelled()
isCancelled in interface Future<V>public V get() throws InterruptedException, ExecutionException
get in interface Future<V>InterruptedExceptionExecutionExceptionpublic V get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
get in interface Future<V>InterruptedExceptionExecutionExceptionTimeoutExceptionpublic void requestProcessed(Object result)
InvocationService.ResultListenerrequestProcessed in interface InvocationService.ResultListenerpublic void requestFailed(String cause)
InvocationService.InvocationListenerrequestFailed in interface InvocationService.InvocationListenerCopyright © 2015. All rights reserved.