Package com.gigaspaces.async
Class SettableFuture<T>
java.lang.Object
com.gigaspaces.async.internal.AbstractFuture<T>
com.gigaspaces.async.SettableFuture<T>
- All Implemented Interfaces:
AsyncFuture<T>,IFuture<T>,Future<T>
Created by Barak Bar Orion 19/08/14.
-
Field Summary
Fields inherited from class com.gigaspaces.async.internal.AbstractFuture
_lock, _resultCondition -
Constructor Summary
Constructors -
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 resulttoString()Methods inherited from class com.gigaspaces.async.internal.AbstractFuture
get, get
-
Constructor Details
-
SettableFuture
-
SettableFuture
public SettableFuture()
-
-
Method Details
-
getResult
- Specified by:
getResultin classAbstractFuture<T>- Throws:
ExecutionException
-
setResult
Description copied from interface:IFutureThe result has no type since it can be an exception or the real result -
setListener
-
cancel
public boolean cancel(boolean mayInterruptIfRunning) -
isCancelled
public boolean isCancelled() -
isDone
public boolean isDone() -
toString
-