Package com.gigaspaces.async.internal
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
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.gigaspaces.async.AsyncFuture
setListenerMethods inherited from interface java.util.concurrent.Future
cancel, isCancelled, isDone
-
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
-