public class ClientCallFuture<V> extends Object implements ICompletableFuture<V>, Callback
Constructor and Description |
---|
ClientCallFuture(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) |
ClientConnection |
getConnection() |
EventHandler |
getHandler() |
ClientRequest |
getRequest() |
boolean |
isCancelled() |
boolean |
isDone() |
void |
notify(Object response) |
boolean |
resend() |
void |
setConnection(ClientConnection connection) |
public ClientCallFuture(HazelcastClientInstanceImpl client, ClientRequest request, EventHandler handler)
public boolean cancel(boolean mayInterruptIfRunning)
public boolean isCancelled()
isCancelled
in interface Future<V>
public V get() throws InterruptedException, ExecutionException
get
in interface Future<V>
InterruptedException
ExecutionException
public V get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
get
in interface Future<V>
InterruptedException
ExecutionException
TimeoutException
public 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 ClientConnection getConnection()
public boolean resend()
public void setConnection(ClientConnection connection)
Copyright © 2014 Hazelcast, Inc.. All Rights Reserved.