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, wait
setListener
cancel, isCancelled, isDone
protected final Lock _lock
protected final Condition _resultCondition
public T get() throws InterruptedException, ExecutionException
get
in interface Future<T>
InterruptedException
ExecutionException
public T get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
get
in interface Future<T>
InterruptedException
ExecutionException
TimeoutException
protected abstract T getResult() throws ExecutionException
ExecutionException
Copyright © GigaSpaces.