Class LocalCacheImplAsyncOperationsFuture<T>
java.lang.Object
com.gigaspaces.async.internal.AbstractFuture<T>
com.gigaspaces.internal.client.cache.localcache.actions.LocalCacheImplAsyncOperationsFuture<T>
- All Implemented Interfaces:
AsyncFuture<T>, IFuture<T>, Future<T>
Base class for dcache async futures, it registers with a custom listener per implementation and
delegates the result to the user supplied listener when the operation is considered done (Up to
the custom listener)
- Author:
- eitany
-
Nested Class Summary
Nested classes/interfaces inherited from interface Future
Future.State -
Field Summary
Fields inherited from class AbstractFuture
_lock, _resultCondition -
Constructor Summary
ConstructorsConstructorDescriptionLocalCacheImplAsyncOperationsFuture(LocalCache cache, ReadTakeAsyncProxyActionInfo actionInfo) -
Method Summary
Modifier and TypeMethodDescriptionbooleancancel(boolean mayInterruptIfRunning) protected TbooleanbooleanisDone()voidsetListener(AsyncFutureListener<T> listener) voidThe result has no type since it can be an exception or the real resultMethods inherited from class AbstractFuture
get, getMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Future
exceptionNow, resultNow, state
-
Constructor Details
-
LocalCacheImplAsyncOperationsFuture
public LocalCacheImplAsyncOperationsFuture(LocalCache cache, ReadTakeAsyncProxyActionInfo actionInfo) throws RemoteException - Throws:
RemoteException
-
-
Method Details
-
setListener
-
cancel
public boolean cancel(boolean mayInterruptIfRunning) -
getResult
- Specified by:
getResultin classAbstractFuture<T>- Throws:
ExecutionException
-
isCancelled
public boolean isCancelled() -
isDone
public boolean isDone() -
setResult
-