V - Value type that the user expectspublic class ClientDelegatingFuture<V> extends Object implements InternalCompletableFuture<V>
ClientInvocationFuture to a user type to be used with andThen() or
get(). It converts ClientMessage coming from ClientInvocationFuture to a user object.| Constructor and Description |
|---|
ClientDelegatingFuture(ClientInvocationFuture clientInvocationFuture,
SerializationService serializationService,
ClientMessageDecoder clientMessageDecoder) |
ClientDelegatingFuture(ClientInvocationFuture clientInvocationFuture,
SerializationService serializationService,
ClientMessageDecoder clientMessageDecoder,
boolean deserializeResponse) |
ClientDelegatingFuture(ClientInvocationFuture clientInvocationFuture,
SerializationService serializationService,
ClientMessageDecoder clientMessageDecoder,
V defaultValue) |
ClientDelegatingFuture(ClientInvocationFuture clientInvocationFuture,
SerializationService serializationService,
ClientMessageDecoder clientMessageDecoder,
V defaultValue,
boolean deserializeResponse) |
| Modifier and Type | Method and Description |
|---|---|
void |
andThen(ExecutionCallback<V> callback) |
void |
andThen(ExecutionCallback<V> callback,
Executor executor) |
boolean |
cancel(boolean mayInterruptIfRunning) |
boolean |
complete(Object value) |
V |
get() |
V |
get(long timeout,
TimeUnit unit) |
protected ClientInvocationFuture |
getFuture() |
boolean |
isCancelled() |
boolean |
isDone() |
V |
join() |
public ClientDelegatingFuture(ClientInvocationFuture clientInvocationFuture, SerializationService serializationService, ClientMessageDecoder clientMessageDecoder, V defaultValue, boolean deserializeResponse)
public ClientDelegatingFuture(ClientInvocationFuture clientInvocationFuture, SerializationService serializationService, ClientMessageDecoder clientMessageDecoder, V defaultValue)
public ClientDelegatingFuture(ClientInvocationFuture clientInvocationFuture, SerializationService serializationService, ClientMessageDecoder clientMessageDecoder)
public ClientDelegatingFuture(ClientInvocationFuture clientInvocationFuture, SerializationService serializationService, ClientMessageDecoder clientMessageDecoder, boolean deserializeResponse)
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 boolean complete(Object value)
complete in interface InternalCompletableFuture<V>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 V join()
join in interface InternalCompletableFuture<V>protected ClientInvocationFuture getFuture()
Copyright © 2022 Hazelcast, Inc.. All Rights Reserved.