public class LRMIFuture<T> extends Object implements IFuture<T>
| Constructor and Description | 
|---|
| LRMIFuture(boolean embedded,
          ClassLoader contextClassLoader) | 
| LRMIFuture(ClassLoader contextClassLoader) | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | cancel(boolean mayInterruptIfRunning) | 
| T | get() | 
| T | get(long timeout,
   TimeUnit unit) | 
| protected T | getResult() | 
| boolean | isCancelled() | 
| boolean | isDone() | 
| void | reset(ClassLoader contextClassLoader) | 
| void | setListener(AsyncFutureListener<T> listener) | 
| void | setResult(Object result)The result has no type since it can be an exception or the real result | 
| void | setResultPacket(ReplyPacket<T> replyPacket) | 
public LRMIFuture(boolean embedded,
                  ClassLoader contextClassLoader)
public LRMIFuture(ClassLoader contextClassLoader)
public void setListener(AsyncFutureListener<T> listener)
setListener in interface AsyncFuture<T>public boolean cancel(boolean mayInterruptIfRunning)
public boolean isCancelled()
isCancelled in interface Future<T>public T get() throws InterruptedException, ExecutionException
get in interface Future<T>InterruptedExceptionExecutionExceptionpublic T get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
get in interface Future<T>InterruptedExceptionExecutionExceptionTimeoutExceptionprotected T getResult() throws ExecutionException
ExecutionExceptionpublic void reset(ClassLoader contextClassLoader)
public void setResultPacket(ReplyPacket<T> replyPacket)
Copyright © GigaSpaces.