public class DeserializingCompletableFuture<V> extends InternalCompletableFuture<V>
InternalCompletableFuture
to supply:
CompletableFuture.AsynchronousCompletionTask
Constructor and Description |
---|
DeserializingCompletableFuture() |
DeserializingCompletableFuture(Executor defaultAsyncExecutor) |
DeserializingCompletableFuture(SerializationService serializationService,
boolean deserialize) |
DeserializingCompletableFuture(SerializationService serializationService,
Executor defaultAsyncExecutor,
boolean deserialize) |
completedExceptionally, completedExceptionally, completingCallback, newCompletedFuture, newCompletedFuture, newCompletedFuture, newCompletedFuture, newDelegatingFuture, withExecutor
allOf, anyOf, cancel, complete, completedFuture, completeExceptionally, getNumberOfDependents, isCancelled, isCompletedExceptionally, isDone, obtrudeException, obtrudeValue, runAsync, runAsync, supplyAsync, supplyAsync, toCompletableFuture, toString
public DeserializingCompletableFuture()
public DeserializingCompletableFuture(Executor defaultAsyncExecutor)
public DeserializingCompletableFuture(SerializationService serializationService, boolean deserialize)
public DeserializingCompletableFuture(SerializationService serializationService, Executor defaultAsyncExecutor, boolean deserialize)
public V get() throws InterruptedException, ExecutionException
get
in interface Future<V>
get
in class CompletableFuture<V>
InterruptedException
ExecutionException
public V get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
get
in interface Future<V>
get
in class CompletableFuture<V>
InterruptedException
ExecutionException
TimeoutException
public V getNow(V valueIfAbsent)
getNow
in class CompletableFuture<V>
public V join()
join
in class CompletableFuture<V>
public V joinInternal()
InternalCompletableFuture
CompletableFuture.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 HazelcastException
s.joinInternal
in class InternalCompletableFuture<V>
public <U> CompletableFuture<U> thenApply(Function<? super V,? extends U> fn)
thenApply
in interface CompletionStage<V>
thenApply
in class CompletableFuture<V>
public <U> CompletableFuture<U> thenApplyAsync(Function<? super V,? extends U> fn)
thenApplyAsync
in interface CompletionStage<V>
thenApplyAsync
in class CompletableFuture<V>
public <U> CompletableFuture<U> thenApplyAsync(Function<? super V,? extends U> fn, Executor executor)
thenApplyAsync
in interface CompletionStage<V>
thenApplyAsync
in class CompletableFuture<V>
public CompletableFuture<Void> thenAccept(Consumer<? super V> action)
thenAccept
in interface CompletionStage<V>
thenAccept
in class CompletableFuture<V>
public CompletableFuture<Void> thenAcceptAsync(Consumer<? super V> action)
thenAcceptAsync
in interface CompletionStage<V>
thenAcceptAsync
in class CompletableFuture<V>
public CompletableFuture<Void> thenAcceptAsync(Consumer<? super V> action, Executor executor)
thenAcceptAsync
in interface CompletionStage<V>
thenAcceptAsync
in class CompletableFuture<V>
public CompletableFuture<Void> thenRun(Runnable action)
thenRun
in interface CompletionStage<V>
thenRun
in class CompletableFuture<V>
public CompletableFuture<Void> thenRunAsync(Runnable action)
thenRunAsync
in interface CompletionStage<V>
thenRunAsync
in class CompletableFuture<V>
public CompletableFuture<Void> thenRunAsync(Runnable action, Executor executor)
thenRunAsync
in interface CompletionStage<V>
thenRunAsync
in class CompletableFuture<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 CompletableFuture<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 CompletableFuture<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 CompletableFuture<V>
public <U> CompletableFuture<Void> thenAcceptBoth(CompletionStage<? extends U> other, BiConsumer<? super V,? super U> action)
thenAcceptBoth
in interface CompletionStage<V>
thenAcceptBoth
in class CompletableFuture<V>
public <U> CompletableFuture<Void> thenAcceptBothAsync(CompletionStage<? extends U> other, BiConsumer<? super V,? super U> action)
thenAcceptBothAsync
in interface CompletionStage<V>
thenAcceptBothAsync
in class CompletableFuture<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 CompletableFuture<V>
public CompletableFuture<Void> runAfterBoth(CompletionStage<?> other, Runnable action)
runAfterBoth
in interface CompletionStage<V>
runAfterBoth
in class CompletableFuture<V>
public CompletableFuture<Void> runAfterBothAsync(CompletionStage<?> other, Runnable action)
runAfterBothAsync
in interface CompletionStage<V>
runAfterBothAsync
in class CompletableFuture<V>
public CompletableFuture<Void> runAfterBothAsync(CompletionStage<?> other, Runnable action, Executor executor)
runAfterBothAsync
in interface CompletionStage<V>
runAfterBothAsync
in class CompletableFuture<V>
public <U> CompletableFuture<U> applyToEither(CompletionStage<? extends V> other, Function<? super V,U> fn)
applyToEither
in interface CompletionStage<V>
applyToEither
in class CompletableFuture<V>
public <U> CompletableFuture<U> applyToEitherAsync(CompletionStage<? extends V> other, Function<? super V,U> fn)
applyToEitherAsync
in interface CompletionStage<V>
applyToEitherAsync
in class CompletableFuture<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 CompletableFuture<V>
public CompletableFuture<Void> acceptEither(CompletionStage<? extends V> other, Consumer<? super V> action)
acceptEither
in interface CompletionStage<V>
acceptEither
in class CompletableFuture<V>
public CompletableFuture<Void> acceptEitherAsync(CompletionStage<? extends V> other, Consumer<? super V> action)
acceptEitherAsync
in interface CompletionStage<V>
acceptEitherAsync
in class CompletableFuture<V>
public CompletableFuture<Void> acceptEitherAsync(CompletionStage<? extends V> other, Consumer<? super V> action, Executor executor)
acceptEitherAsync
in interface CompletionStage<V>
acceptEitherAsync
in class CompletableFuture<V>
public CompletableFuture<Void> runAfterEither(CompletionStage<?> other, Runnable action)
runAfterEither
in interface CompletionStage<V>
runAfterEither
in class CompletableFuture<V>
public CompletableFuture<Void> runAfterEitherAsync(CompletionStage<?> other, Runnable action)
runAfterEitherAsync
in interface CompletionStage<V>
runAfterEitherAsync
in class CompletableFuture<V>
public CompletableFuture<Void> runAfterEitherAsync(CompletionStage<?> other, Runnable action, Executor executor)
runAfterEitherAsync
in interface CompletionStage<V>
runAfterEitherAsync
in class CompletableFuture<V>
public <U> CompletableFuture<U> thenCompose(Function<? super V,? extends CompletionStage<U>> fn)
thenCompose
in interface CompletionStage<V>
thenCompose
in class CompletableFuture<V>
public <U> CompletableFuture<U> thenComposeAsync(Function<? super V,? extends CompletionStage<U>> fn)
thenComposeAsync
in interface CompletionStage<V>
thenComposeAsync
in class CompletableFuture<V>
public <U> CompletableFuture<U> thenComposeAsync(Function<? super V,? extends CompletionStage<U>> fn, Executor executor)
thenComposeAsync
in interface CompletionStage<V>
thenComposeAsync
in class CompletableFuture<V>
public CompletableFuture<V> whenComplete(BiConsumer<? super V,? super Throwable> action)
whenComplete
in interface CompletionStage<V>
whenComplete
in class CompletableFuture<V>
public CompletableFuture<V> whenCompleteAsync(BiConsumer<? super V,? super Throwable> action)
whenCompleteAsync
in interface CompletionStage<V>
whenCompleteAsync
in class CompletableFuture<V>
public CompletableFuture<V> whenCompleteAsync(BiConsumer<? super V,? super Throwable> action, Executor executor)
whenCompleteAsync
in interface CompletionStage<V>
whenCompleteAsync
in class CompletableFuture<V>
public <U> CompletableFuture<U> handle(BiFunction<? super V,Throwable,? extends U> fn)
handle
in interface CompletionStage<V>
handle
in class CompletableFuture<V>
public <U> CompletableFuture<U> handleAsync(BiFunction<? super V,Throwable,? extends U> fn)
handleAsync
in interface CompletionStage<V>
handleAsync
in class CompletableFuture<V>
public <U> CompletableFuture<U> handleAsync(BiFunction<? super V,Throwable,? extends U> fn, Executor executor)
handleAsync
in interface CompletionStage<V>
handleAsync
in class CompletableFuture<V>
public CompletableFuture<V> exceptionally(Function<Throwable,? extends V> fn)
exceptionally
in interface CompletionStage<V>
exceptionally
in class CompletableFuture<V>
Copyright © 2019 Hazelcast, Inc.. All rights reserved.