| Constructor and Description |
|---|
EventDrivenRemoteFuture(GigaSpace gigaSpace,
SpaceRemotingEntry remotingEntry) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancel(boolean mayInterruptIfRunning)
Attempts to cancel execution of this task.
|
T |
get()
Waits if necessary for the computation to complete, and then retrieves its result.
|
T |
get(long timeout,
TimeUnit unit)
Waits if necessary for at most the given time for the computation to complete, and then
retrieves its result, if available.
|
boolean |
isCancelled()
Returns
true if this task was cancelled before it completed normally. |
boolean |
isDone()
Returns
true if this task completed. |
public EventDrivenRemoteFuture(GigaSpace gigaSpace, SpaceRemotingEntry remotingEntry)
public boolean cancel(boolean mayInterruptIfRunning)
cancel is called, this task
should never run.public boolean isCancelled()
true if this task was cancelled before it completed normally.isCancelled in interface Future<T>true if task was cancelled before it completedpublic boolean isDone()
true if this task completed.
Completion may be due to normal termination, an exception, or cancellation -- in all of
these cases, this method will return true.
public T get() throws InterruptedException, ExecutionException
get in interface Future<T>CancellationException - if the computation was cancelledExecutionException - if the computation threw an exceptionInterruptedException - if the current thread was interrupted while waitingpublic T get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
get in interface Future<T>timeout - the maximum time to waitunit - the time unit of the timeout argumentCancellationException - if the computation was cancelledExecutionException - if the computation threw an exceptionInterruptedException - if the current thread was interrupted while waitingTimeoutException - if the wait timed outCopyright © GigaSpaces.