public abstract class AbstractCompletableFuture<V> extends Object implements ICompletableFuture<V>
Modifier and Type | Field and Description |
---|---|
protected NodeEngine |
nodeEngine |
protected static Object |
NULL_VALUE |
protected Object |
result |
protected AtomicReferenceFieldUpdater<AbstractCompletableFuture,Object> |
resultUpdater |
Modifier | Constructor and Description |
---|---|
protected |
AbstractCompletableFuture(NodeEngine nodeEngine,
ILogger logger) |
Modifier and Type | Method and Description |
---|---|
void |
andThen(ExecutionCallback<V> callback) |
void |
andThen(ExecutionCallback<V> callback,
Executor executor) |
protected void |
fireCallbacks() |
V |
get() |
protected ExecutorService |
getAsyncExecutor() |
protected V |
getResult() |
boolean |
isDone() |
void |
setResult(Object result) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
cancel, get, isCancelled
protected static final Object NULL_VALUE
protected final AtomicReferenceFieldUpdater<AbstractCompletableFuture,Object> resultUpdater
protected final NodeEngine nodeEngine
protected volatile Object result
protected AbstractCompletableFuture(NodeEngine nodeEngine, ILogger logger)
public void andThen(ExecutionCallback<V> callback)
andThen
in interface ICompletableFuture<V>
public void andThen(ExecutionCallback<V> callback, Executor executor)
andThen
in interface ICompletableFuture<V>
public V get() throws InterruptedException, ExecutionException
get
in interface Future<V>
InterruptedException
ExecutionException
public void setResult(Object result)
protected V getResult()
protected void fireCallbacks()
protected ExecutorService getAsyncExecutor()
Copyright © 2014 Hazelcast, Inc.. All Rights Reserved.