V - Value type that user expectingpublic class ClientDelegatingFuture<V> extends Object implements InternalCompletableFuture<V>
| Constructor and Description | 
|---|
| ClientDelegatingFuture(ClientInvocationFuture clientInvocationFuture,
                      SerializationService serializationService,
                      ClientMessageDecoder clientMessageDecoder) | 
| ClientDelegatingFuture(ClientInvocationFuture clientInvocationFuture,
                      SerializationService serializationService,
                      ClientMessageDecoder clientMessageDecoder,
                      V defaultValue) | 
| 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. | 
| <R> void | andThenInternal(ExecutionCallback<R> callback) | 
| boolean | cancel(boolean mayInterruptIfRunning) | 
| V | get() | 
| V | get(long timeout,
   TimeUnit unit) | 
| protected ClientInvocationFuture | getFuture() | 
| Object | getResponse() | 
| V | getSafely() | 
| boolean | isCancelled() | 
| boolean | isDone() | 
| V | join()Waits for this future to complete. | 
| protected void | setDone() | 
| protected void | setError(Throwable error) | 
public ClientDelegatingFuture(ClientInvocationFuture clientInvocationFuture, SerializationService serializationService, ClientMessageDecoder clientMessageDecoder, V defaultValue)
public ClientDelegatingFuture(ClientInvocationFuture clientInvocationFuture, SerializationService serializationService, ClientMessageDecoder clientMessageDecoder)
public <R> void andThenInternal(ExecutionCallback<R> callback)
public void andThen(ExecutionCallback<V> callback)
ICompletableFutureandThen in interface ICompletableFuture<V>callback - the callback to executepublic void andThen(ExecutionCallback<V> callback, Executor executor)
ICompletableFutureandThen in interface ICompletableFuture<V>callback - the callback to executeexecutor - the executor in which the callback will be runpublic boolean cancel(boolean mayInterruptIfRunning)
public boolean isCancelled()
isCancelled in interface Future<V>public Object getResponse()
public V get() throws InterruptedException, ExecutionException
get in interface Future<V>InterruptedExceptionExecutionExceptionpublic V get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
get in interface Future<V>InterruptedExceptionExecutionExceptionTimeoutExceptionpublic V join()
InternalCompletableFuturejoin in interface InternalCompletableFuture<V>public V getSafely()
getSafely in interface InternalCompletableFuture<V>protected void setError(Throwable error)
protected void setDone()
protected ClientInvocationFuture getFuture()
Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.