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.
-
Nested Class Summary
Nested classes/interfaces inherited from interface Future
Future.State -
Field Summary
Fields inherited from class 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 AbstractFuture
get, getMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Future
exceptionNow, resultNow, state
-
Constructor Details
-
SettableFuture
-
SettableFuture
public SettableFuture()
-
-
Method Details
-
getResult
- Specified by:
getResultin classAbstractFuture<T>- Throws:
ExecutionException
-
setResult
-
setListener
-
cancel
public boolean cancel(boolean mayInterruptIfRunning) -
isCancelled
public boolean isCancelled() -
isDone
public boolean isDone() -
toString
-