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 this future is completed.
|
void |
andThen(ExecutionCallback<V> callback,
Executor executor)
Registers a callback that will run with the provided executor after this
future is completed.
|
void andThen(ExecutionCallback<V> callback)
Please note that there is no ordering guarantee for running multiple callbacks. It is also not guaranteed that the callback will run within the same thread that completes the future.
callback
- the callback to executevoid andThen(ExecutionCallback<V> callback, Executor executor)
executor
.
Please note that there is no ordering guarantee for executing multiple
callbacks.callback
- the callback to executeexecutor
- the executor in which the callback will be runCopyright © 2021 Hazelcast, Inc.. All Rights Reserved.