public class CompletableFutureTask<V> extends FutureTask<V> implements ICompletableFuture<V>
| Constructor and Description |
|---|
CompletableFutureTask(Callable<V> callable,
ExecutorService asyncExecutor) |
CompletableFutureTask(Runnable runnable,
V result,
ExecutorService asyncExecutor) |
| 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.
|
void |
run() |
cancel, done, get, get, isCancelled, isDone, runAndReset, set, setExceptionpublic CompletableFutureTask(Callable<V> callable, ExecutorService asyncExecutor)
public CompletableFutureTask(Runnable runnable, V result, ExecutorService asyncExecutor)
public void run()
run in interface Runnablerun in interface RunnableFuture<V>run in class FutureTask<V>public void andThen(ExecutionCallback<V> callback)
ICompletableFutureandThen in interface ICompletableFuture<V>callback - the callback to executepublic void andThen(ExecutionCallback<V> callback, Executor executor)
ICompletableFutureandThen in interface ICompletableFuture<V>callback - the callback to executeexecutor - the executor in which the callback will be runCopyright © 2015 Hazelcast, Inc.. All Rights Reserved.