V - Value type that the user expectspublic class ClientDelegatingFuture<V> extends DelegatingCompletableFuture<V>
ClientInvocationFuture to a user type to be used with further computation stages or
get(). It converts ClientMessage coming from ClientInvocationFuture to a user object.CompletableFuture.AsynchronousCompletionTask| 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) |
complete, completeExceptionally, getDelegate, getNow, isDone, resolvecompletedExceptionally, completedExceptionally, completingCallback, newCompletedFuture, newCompletedFuture, newCompletedFuture, newCompletedFuture, newDelegatingFuture, withExecutorallOf, anyOf, completedFuture, runAsync, runAsync, supplyAsync, supplyAsyncpublic 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 V get() throws InterruptedException, ExecutionException
get in interface Future<V>get in class DelegatingCompletableFuture<V>InterruptedExceptionExecutionExceptionpublic V get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
get in interface Future<V>get in class DelegatingCompletableFuture<V>InterruptedExceptionExecutionExceptionTimeoutExceptionpublic V join()
join in class DelegatingCompletableFuture<V>public V joinInternal()
InternalCompletableFutureCompletableFuture.join(), returns the value when complete or throws an unchecked exception if
completed exceptionally. Unlike CompletableFuture.join(), checked exceptions are not wrapped in CompletionException;
rather they are wrapped in HazelcastExceptions.joinInternal in class DelegatingCompletableFuture<V>protected V resolveResponse(ClientMessage clientMessage, boolean deserialize)
protected ClientInvocationFuture getFuture()
public <U> CompletableFuture<U> thenApply(Function<? super V,? extends U> fn)
thenApply in interface CompletionStage<V>thenApply in class DelegatingCompletableFuture<V>public <U> CompletableFuture<U> thenApplyAsync(Function<? super V,? extends U> fn)
thenApplyAsync in interface CompletionStage<V>thenApplyAsync in class DelegatingCompletableFuture<V>public <U> CompletableFuture<U> thenApplyAsync(Function<? super V,? extends U> fn, Executor executor)
thenApplyAsync in interface CompletionStage<V>thenApplyAsync in class DelegatingCompletableFuture<V>public CompletableFuture<Void> thenAccept(Consumer<? super V> action)
thenAccept in interface CompletionStage<V>thenAccept in class DelegatingCompletableFuture<V>public CompletableFuture<Void> thenAcceptAsync(Consumer<? super V> action)
thenAcceptAsync in interface CompletionStage<V>thenAcceptAsync in class DelegatingCompletableFuture<V>public CompletableFuture<Void> thenAcceptAsync(Consumer<? super V> action, Executor executor)
thenAcceptAsync in interface CompletionStage<V>thenAcceptAsync in class DelegatingCompletableFuture<V>public CompletableFuture<Void> thenRun(Runnable action)
thenRun in interface CompletionStage<V>thenRun in class DelegatingCompletableFuture<V>public CompletableFuture<Void> thenRunAsync(Runnable action)
thenRunAsync in interface CompletionStage<V>thenRunAsync in class DelegatingCompletableFuture<V>public CompletableFuture<Void> thenRunAsync(Runnable action, Executor executor)
thenRunAsync in interface CompletionStage<V>thenRunAsync in class DelegatingCompletableFuture<V>public <U,V1> CompletableFuture<V1> thenCombine(CompletionStage<? extends U> other, BiFunction<? super V,? super U,? extends V1> fn)
thenCombine in interface CompletionStage<V>thenCombine in class DelegatingCompletableFuture<V>public <U,V1> CompletableFuture<V1> thenCombineAsync(CompletionStage<? extends U> other, BiFunction<? super V,? super U,? extends V1> fn)
thenCombineAsync in interface CompletionStage<V>thenCombineAsync in class DelegatingCompletableFuture<V>public <U,V1> CompletableFuture<V1> thenCombineAsync(CompletionStage<? extends U> other, BiFunction<? super V,? super U,? extends V1> fn, Executor executor)
thenCombineAsync in interface CompletionStage<V>thenCombineAsync in class DelegatingCompletableFuture<V>public <U> CompletableFuture<Void> thenAcceptBoth(CompletionStage<? extends U> other, BiConsumer<? super V,? super U> action)
thenAcceptBoth in interface CompletionStage<V>thenAcceptBoth in class DelegatingCompletableFuture<V>public <U> CompletableFuture<Void> thenAcceptBothAsync(CompletionStage<? extends U> other, BiConsumer<? super V,? super U> action)
thenAcceptBothAsync in interface CompletionStage<V>thenAcceptBothAsync in class DelegatingCompletableFuture<V>public <U> CompletableFuture<Void> thenAcceptBothAsync(CompletionStage<? extends U> other, BiConsumer<? super V,? super U> action, Executor executor)
thenAcceptBothAsync in interface CompletionStage<V>thenAcceptBothAsync in class DelegatingCompletableFuture<V>public CompletableFuture<Void> runAfterBoth(CompletionStage<?> other, Runnable action)
runAfterBoth in interface CompletionStage<V>runAfterBoth in class DelegatingCompletableFuture<V>public CompletableFuture<Void> runAfterBothAsync(CompletionStage<?> other, Runnable action)
runAfterBothAsync in interface CompletionStage<V>runAfterBothAsync in class DelegatingCompletableFuture<V>public CompletableFuture<Void> runAfterBothAsync(CompletionStage<?> other, Runnable action, Executor executor)
runAfterBothAsync in interface CompletionStage<V>runAfterBothAsync in class DelegatingCompletableFuture<V>public <U> CompletableFuture<U> applyToEitherAsync(CompletionStage<? extends V> other, Function<? super V,U> fn)
applyToEitherAsync in interface CompletionStage<V>applyToEitherAsync in class DelegatingCompletableFuture<V>public <U> CompletableFuture<U> applyToEither(CompletionStage<? extends V> other, Function<? super V,U> fn)
applyToEither in interface CompletionStage<V>applyToEither in class DelegatingCompletableFuture<V>public <U> CompletableFuture<U> applyToEitherAsync(CompletionStage<? extends V> other, Function<? super V,U> fn, Executor executor)
applyToEitherAsync in interface CompletionStage<V>applyToEitherAsync in class DelegatingCompletableFuture<V>public CompletableFuture<Void> acceptEither(CompletionStage<? extends V> other, Consumer<? super V> action)
acceptEither in interface CompletionStage<V>acceptEither in class DelegatingCompletableFuture<V>public CompletableFuture<Void> acceptEitherAsync(CompletionStage<? extends V> other, Consumer<? super V> action)
acceptEitherAsync in interface CompletionStage<V>acceptEitherAsync in class DelegatingCompletableFuture<V>public CompletableFuture<Void> acceptEitherAsync(CompletionStage<? extends V> other, Consumer<? super V> action, Executor executor)
acceptEitherAsync in interface CompletionStage<V>acceptEitherAsync in class DelegatingCompletableFuture<V>public CompletableFuture<Void> runAfterEither(CompletionStage<?> other, Runnable action)
runAfterEither in interface CompletionStage<V>runAfterEither in class DelegatingCompletableFuture<V>public CompletableFuture<Void> runAfterEitherAsync(CompletionStage<?> other, Runnable action)
runAfterEitherAsync in interface CompletionStage<V>runAfterEitherAsync in class DelegatingCompletableFuture<V>public CompletableFuture<Void> runAfterEitherAsync(CompletionStage<?> other, Runnable action, Executor executor)
runAfterEitherAsync in interface CompletionStage<V>runAfterEitherAsync in class DelegatingCompletableFuture<V>public <U> CompletableFuture<U> thenCompose(Function<? super V,? extends CompletionStage<U>> fn)
thenCompose in interface CompletionStage<V>thenCompose in class DelegatingCompletableFuture<V>public <U> CompletableFuture<U> thenComposeAsync(Function<? super V,? extends CompletionStage<U>> fn)
thenComposeAsync in interface CompletionStage<V>thenComposeAsync in class DelegatingCompletableFuture<V>public <U> CompletableFuture<U> thenComposeAsync(Function<? super V,? extends CompletionStage<U>> fn, Executor executor)
thenComposeAsync in interface CompletionStage<V>thenComposeAsync in class DelegatingCompletableFuture<V>public CompletableFuture<V> whenComplete(BiConsumer<? super V,? super Throwable> action)
whenComplete in interface CompletionStage<V>whenComplete in class DelegatingCompletableFuture<V>public CompletableFuture<V> whenCompleteAsync(BiConsumer<? super V,? super Throwable> action)
whenCompleteAsync in interface CompletionStage<V>whenCompleteAsync in class DelegatingCompletableFuture<V>public CompletableFuture<V> whenCompleteAsync(BiConsumer<? super V,? super Throwable> action, Executor executor)
whenCompleteAsync in interface CompletionStage<V>whenCompleteAsync in class DelegatingCompletableFuture<V>public <U> CompletableFuture<U> handle(BiFunction<? super V,Throwable,? extends U> fn)
handle in interface CompletionStage<V>handle in class DelegatingCompletableFuture<V>public <U> CompletableFuture<U> handleAsync(BiFunction<? super V,Throwable,? extends U> fn)
handleAsync in interface CompletionStage<V>handleAsync in class DelegatingCompletableFuture<V>public <U> CompletableFuture<U> handleAsync(BiFunction<? super V,Throwable,? extends U> fn, Executor executor)
handleAsync in interface CompletionStage<V>handleAsync in class DelegatingCompletableFuture<V>public CompletableFuture<V> toCompletableFuture()
toCompletableFuture in interface CompletionStage<V>toCompletableFuture in class DelegatingCompletableFuture<V>public CompletableFuture<V> exceptionally(Function<Throwable,? extends V> fn)
exceptionally in interface CompletionStage<V>exceptionally in class DelegatingCompletableFuture<V>public boolean cancel(boolean mayInterruptIfRunning)
public boolean isCancelled()
isCancelled in interface Future<V>isCancelled in class DelegatingCompletableFuture<V>public boolean isCompletedExceptionally()
isCompletedExceptionally in class DelegatingCompletableFuture<V>public void obtrudeValue(V value)
obtrudeValue in class DelegatingCompletableFuture<V>public void obtrudeException(Throwable ex)
obtrudeException in class DelegatingCompletableFuture<V>public int getNumberOfDependents()
getNumberOfDependents in class DelegatingCompletableFuture<V>public String toString()
toString in class DelegatingCompletableFuture<V>Copyright © 2019 Hazelcast, Inc.. All rights reserved.