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) |
void |
andThen(ExecutionCallback<V> callback,
Executor executor) |
void |
run() |
cancel, done, get, get, isCancelled, isDone, runAndReset, set, setException
public CompletableFutureTask(Callable<V> callable, ExecutorService asyncExecutor)
public CompletableFutureTask(Runnable runnable, V result, ExecutorService asyncExecutor)
public void run()
run
in interface Runnable
run
in interface RunnableFuture<V>
run
in class FutureTask<V>
public void andThen(ExecutionCallback<V> callback)
andThen
in interface ICompletableFuture<V>
public void andThen(ExecutionCallback<V> callback, Executor executor)
andThen
in interface ICompletableFuture<V>
Copyright © 2014 Hazelcast, Inc.. All Rights Reserved.