com.hazelcast.core
Interface ICompletableFuture<V>

Type Parameters:
V -
All Superinterfaces:
Future<V>
All Known Subinterfaces:
InternalCompletableFuture<E>, JobCompletableFuture<V>
All Known Implementing Classes:
AbstractCompletableFuture, ClientCallFuture, ClientCancellableDelegatingFuture, CompletableFutureTask, CompletedFuture, DelegatingFuture, TrackableJobFuture

@Beta
public interface ICompletableFuture<V>
extends Future<V>

A Future where one can asynchronously listen on completion. This functionality is needed for the reactive programming model. For more information see: http://download.java.net/jdk8/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.

Since:
3.2

Method Summary
 void andThen(ExecutionCallback<V> callback)
           
 void andThen(ExecutionCallback<V> callback, Executor executor)
           
 
Methods inherited from interface java.util.concurrent.Future
cancel, get, get, isCancelled, isDone
 

Method Detail

andThen

void andThen(ExecutionCallback<V> callback)

andThen

void andThen(ExecutionCallback<V> callback,
             Executor executor)


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.