public class SettableFuture<T> extends AbstractFuture<T>
_lock, _resultCondition
Constructor and Description |
---|
SettableFuture() |
SettableFuture(Executor executor) |
Modifier and Type | Method and Description |
---|---|
boolean |
cancel(boolean mayInterruptIfRunning) |
protected T |
getResult() |
boolean |
isCancelled() |
boolean |
isDone() |
void |
setListener(AsyncFutureListener<T> listener) |
void |
setResult(Object result)
The result has no type since it can be an exception or the real result
|
String |
toString() |
get, get
public SettableFuture(Executor executor)
public SettableFuture()
protected T getResult() throws ExecutionException
getResult
in class AbstractFuture<T>
ExecutionException
public void setResult(Object result)
IFuture
public void setListener(AsyncFutureListener<T> listener)
public boolean cancel(boolean mayInterruptIfRunning)
public boolean isCancelled()
public boolean isDone()
Copyright © GigaSpaces.