V - public class DelegatingCompletableFuture<V> extends InternalCompletableFuture<V>
InternalCompletableFuture implementation that delegates the real logic to an underlying
InternalCompletableFuture and decorates it with additional behavior:
CompletableFuture.AsynchronousCompletionTask| Constructor and Description |
|---|
DelegatingCompletableFuture(SerializationService serializationService,
CompletableFuture future) |
DelegatingCompletableFuture(SerializationService serializationService,
CompletableFuture future,
V result) |
completedExceptionally, completedExceptionally, completingCallback, newCompletedFuture, newCompletedFuture, newCompletedFuture, newCompletedFuture, newDelegatingFuture, withExecutorallOf, anyOf, completedFuture, runAsync, runAsync, supplyAsync, supplyAsyncpublic DelegatingCompletableFuture(@Nonnull SerializationService serializationService, @Nonnull CompletableFuture future)
public DelegatingCompletableFuture(@Nonnull SerializationService serializationService, @Nonnull CompletableFuture future, V result)
public V get() throws InterruptedException, ExecutionException
get in interface Future<V>get in class CompletableFuture<V>InterruptedExceptionExecutionExceptionpublic V get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
get in interface Future<V>get in class CompletableFuture<V>InterruptedExceptionExecutionExceptionTimeoutExceptionpublic V getNow(V valueIfAbsent)
getNow in class CompletableFuture<V>public V join()
join in class CompletableFuture<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 InternalCompletableFuture<V>public Future getDelegate()
public boolean isDone()
public boolean complete(V value)
complete in class CompletableFuture<V>public boolean completeExceptionally(Throwable ex)
completeExceptionally in class CompletableFuture<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> toCompletableFuture()
toCompletableFuture in interface CompletionStage<V>toCompletableFuture in class CompletableFuture<V>public CompletableFuture<V> exceptionally(Function<Throwable,? extends V> fn)
exceptionally in interface CompletionStage<V>exceptionally in class CompletableFuture<V>public boolean cancel(boolean mayInterruptIfRunning)
public boolean isCancelled()
isCancelled in interface Future<V>isCancelled in class CompletableFuture<V>public boolean isCompletedExceptionally()
isCompletedExceptionally in class CompletableFuture<V>public void obtrudeValue(V value)
obtrudeValue in class CompletableFuture<V>public void obtrudeException(Throwable ex)
obtrudeException in class CompletableFuture<V>public int getNumberOfDependents()
getNumberOfDependents in class CompletableFuture<V>public String toString()
toString in class CompletableFuture<V>Copyright © 2019 Hazelcast, Inc.. All rights reserved.