| 
GigaSpaces XAP 9.1 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openspaces.remoting.EventDrivenRemoteFuture<T>
public class EventDrivenRemoteFuture<T>
A Space remoting future implementation.
| Constructor Summary | |
|---|---|
EventDrivenRemoteFuture(GigaSpace gigaSpace,
                        SpaceRemotingEntry remotingEntry)
 | 
|
| Method Summary | |
|---|---|
 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. | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public EventDrivenRemoteFuture(GigaSpace gigaSpace,
                               SpaceRemotingEntry remotingEntry)
| Method Detail | 
|---|
public boolean cancel(boolean mayInterruptIfRunning)
cancel is called,
 this task should never run.
cancel in interface Future<T>mayInterruptIfRunning - Has no affect when using Space Remoting
false if the task could not be cancelled,
         typically because it has already completed normally;
         true otherwisepublic 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.
isDone in interface Future<T>true if this task completed.
public T get()
      throws InterruptedException,
             ExecutionException
get in interface Future<T>CancellationException - if the computation was cancelled
ExecutionException - if the computation threw an
                               exception
InterruptedException - if the current thread was interrupted
                               while waiting
public 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 argument
CancellationException - if the computation was cancelled
ExecutionException - if the computation threw an
                               exception
InterruptedException - if the current thread was interrupted
                               while waiting
TimeoutException - if the wait timed out
  | 
GigaSpaces XAP 9.1 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||