com.hazelcast.util.executor
Class CompletableFutureTask<V>
java.lang.Object
java.util.concurrent.FutureTask<V>
com.hazelcast.util.executor.CompletableFutureTask<V>
- All Implemented Interfaces:
- ICompletableFuture<V>, Runnable, Future<V>, RunnableFuture<V>
public class CompletableFutureTask<V>
- extends FutureTask<V>
- implements ICompletableFuture<V>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CompletableFutureTask
public CompletableFutureTask(Callable<V> callable,
ExecutorService asyncExecutor)
CompletableFutureTask
public CompletableFutureTask(Runnable runnable,
V result,
ExecutorService asyncExecutor)
run
public void run()
- Specified by:
run
in interface Runnable
- Specified by:
run
in interface RunnableFuture<V>
- Overrides:
run
in class FutureTask<V>
andThen
public void andThen(ExecutionCallback<V> callback)
- Specified by:
andThen
in interface ICompletableFuture<V>
andThen
public void andThen(ExecutionCallback<V> callback,
Executor executor)
- Specified by:
andThen
in interface ICompletableFuture<V>
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.