Class AbstractFuture<T>
java.lang.Object
com.gigaspaces.async.internal.AbstractFuture<T>
- All Implemented Interfaces:
AsyncFuture<T>, IFuture<T>, Future<T>
- Direct Known Subclasses:
LocalCacheImplAsyncOperationsFuture, SettableFuture
-
Nested Class Summary
Nested classes/interfaces inherited from interface Future
Future.State -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface AsyncFuture
setListenerMethods inherited from interface Future
cancel, exceptionNow, isCancelled, isDone, resultNow, state
-
Field Details
-
_lock
-
_resultCondition
-
-
Constructor Details
-
AbstractFuture
public AbstractFuture()
-
-
Method Details
-
get
- Specified by:
getin interfaceFuture<T>- Throws:
InterruptedExceptionExecutionException
-
get
public T get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException - Specified by:
getin interfaceFuture<T>- Throws:
InterruptedExceptionExecutionExceptionTimeoutException
-
getResult
- Throws:
ExecutionException
-