public class ClientInvocationFuture<V> extends Object implements ICompletableFuture<V>
| Constructor and Description |
|---|
ClientInvocationFuture(ClientInvocation invocation,
HazelcastClientInstanceImpl client,
ClientRequest request,
EventHandler handler) |
| Modifier and Type | Method and Description |
|---|---|
void |
andThen(ExecutionCallback<V> callback) |
void |
andThen(ExecutionCallback<V> callback,
Executor executor) |
void |
andThenInternal(ExecutionCallback<Data> callback) |
boolean |
cancel(boolean mayInterruptIfRunning) |
V |
get() |
V |
get(long timeout,
TimeUnit unit) |
EventHandler |
getHandler() |
ClientInvocation |
getInvocation() |
ClientRequest |
getRequest() |
boolean |
isCancelled() |
boolean |
isDone() |
void |
setResponseDeserialized(boolean responseDeserialized)
By default the ClientInvocationFuture will not deserialize a response if it is in Data format.
|
public ClientInvocationFuture(ClientInvocation invocation, HazelcastClientInstanceImpl client, ClientRequest request, EventHandler handler)
public void setResponseDeserialized(boolean responseDeserialized)
responseDeserialized - public boolean cancel(boolean mayInterruptIfRunning)
public boolean isCancelled()
isCancelled in interface Future<V>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 void andThen(ExecutionCallback<V> callback)
andThen in interface ICompletableFuture<V>public void andThen(ExecutionCallback<V> callback, Executor executor)
andThen in interface ICompletableFuture<V>public void andThenInternal(ExecutionCallback<Data> callback)
public ClientRequest getRequest()
public EventHandler getHandler()
public ClientInvocation getInvocation()
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.