public abstract class AbstractFuture<T> extends Object implements IFuture<T>
| Modifier and Type | Field and Description | 
|---|---|
protected Lock | 
_lock  | 
protected Condition | 
_resultCondition  | 
| Constructor and Description | 
|---|
AbstractFuture()  | 
| Modifier and Type | Method and Description | 
|---|---|
T | 
get()  | 
T | 
get(long timeout,
   TimeUnit unit)  | 
protected abstract T | 
getResult()  | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetListenercancel, isCancelled, isDoneprotected final Lock _lock
protected final Condition _resultCondition
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 abstract T getResult() throws ExecutionException
ExecutionExceptionCopyright © GigaSpaces.