com.hazelcast.spi.impl
public abstract class AbstractCompletableFuture<V> extends Object implements ICompletableFuture<V>
Modifier | Constructor and Description |
---|---|
protected |
AbstractCompletableFuture(Executor defaultExecutor,
ILogger logger) |
protected |
AbstractCompletableFuture(NodeEngine nodeEngine,
ILogger logger) |
Modifier and Type | Method and Description |
---|---|
void |
andThen(ExecutionCallback<V> callback)
Registers a callback that will run after the future is completed.
|
void |
andThen(ExecutionCallback<V> callback,
Executor executor)
Registers a callback that will run with the provided executor after the future is completed.
|
V |
get() |
protected V |
getResult() |
boolean |
isDone() |
protected void |
runAsynchronous(com.hazelcast.spi.impl.AbstractCompletableFuture.ExecutionCallbackNode head,
Object result) |
void |
setResult(Object result) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
cancel, get, isCancelled
protected AbstractCompletableFuture(NodeEngine nodeEngine, ILogger logger)
public void andThen(ExecutionCallback<V> callback)
ICompletableFuture
andThen
in interface ICompletableFuture<V>
callback
- the callback to executepublic void andThen(ExecutionCallback<V> callback, Executor executor)
ICompletableFuture
andThen
in interface ICompletableFuture<V>
callback
- the callback to executeexecutor
- the executor in which the callback will be runpublic V get() throws InterruptedException, ExecutionException
get
in interface Future<V>
InterruptedException
ExecutionException
public void setResult(Object result)
protected V getResult()
protected void runAsynchronous(com.hazelcast.spi.impl.AbstractCompletableFuture.ExecutionCallbackNode head, Object result)
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.