com.hazelcast.client.spi.impl
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)
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.
|
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() |
public ClientInvocationFuture(ClientInvocation invocation, 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)
ICompletableFuture
andThen
in interface ICompletableFuture<V>
callback
- the callback to executepublic void andThen(ExecutionCallback<V> callback, Executor executor)
ICompletableFuture
andThen
in interface ICompletableFuture<V>
callback
- the callback to executeexecutor
- the executor in which the callback will be runpublic void andThenInternal(ExecutionCallback<Data> callback)
public ClientRequest getRequest()
public EventHandler getHandler()
public ClientInvocation getInvocation()
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.