V
- public interface ICompletableFuture<V> extends Future<V>
For more information see: https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html
This class can be dropped once Hazelcast relies on Java8+. It is added to make Hazelcast compatible with Java6/7.
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 andThen(ExecutionCallback<V> callback)
callback
- the callback to executevoid andThen(ExecutionCallback<V> callback, Executor executor)
callback
- the callback to executeexecutor
- the executor in which the callback will be runCopyright © 2018 Hazelcast, Inc.. All Rights Reserved.