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
-
Field Summary
Fields inherited from class com.gigaspaces.async.internal.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 com.gigaspaces.async.internal.AbstractFuture
get, get
-
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
Description copied from interface:IFutureThe result has no type since it can be an exception or the real result
-