public abstract class ForwardingCompletionStage<T>
extends java.lang.Object
implements java.util.concurrent.CompletionStage<T>
| Constructor and Description |
|---|
ForwardingCompletionStage() |
| Modifier and Type | Method and Description |
|---|---|
java.util.concurrent.CompletionStage<java.lang.Void> |
acceptEither(java.util.concurrent.CompletionStage<? extends T> other,
java.util.function.Consumer<? super T> action) |
java.util.concurrent.CompletionStage<java.lang.Void> |
acceptEitherAsync(java.util.concurrent.CompletionStage<? extends T> other,
java.util.function.Consumer<? super T> action) |
java.util.concurrent.CompletionStage<java.lang.Void> |
acceptEitherAsync(java.util.concurrent.CompletionStage<? extends T> other,
java.util.function.Consumer<? super T> action,
java.util.concurrent.Executor executor) |
<U> java.util.concurrent.CompletionStage<U> |
applyToEither(java.util.concurrent.CompletionStage<? extends T> other,
java.util.function.Function<? super T,U> fn) |
<U> java.util.concurrent.CompletionStage<U> |
applyToEitherAsync(java.util.concurrent.CompletionStage<? extends T> other,
java.util.function.Function<? super T,U> fn) |
<U> java.util.concurrent.CompletionStage<U> |
applyToEitherAsync(java.util.concurrent.CompletionStage<? extends T> other,
java.util.function.Function<? super T,U> fn,
java.util.concurrent.Executor executor) |
protected abstract java.util.concurrent.CompletionStage<T> |
delegate() |
java.util.concurrent.CompletionStage<T> |
exceptionally(java.util.function.Function<java.lang.Throwable,? extends T> fn) |
<U> java.util.concurrent.CompletionStage<U> |
handle(java.util.function.BiFunction<? super T,java.lang.Throwable,? extends U> fn) |
<U> java.util.concurrent.CompletionStage<U> |
handleAsync(java.util.function.BiFunction<? super T,java.lang.Throwable,? extends U> fn) |
<U> java.util.concurrent.CompletionStage<U> |
handleAsync(java.util.function.BiFunction<? super T,java.lang.Throwable,? extends U> fn,
java.util.concurrent.Executor executor) |
java.util.concurrent.CompletionStage<java.lang.Void> |
runAfterBoth(java.util.concurrent.CompletionStage<?> other,
java.lang.Runnable action) |
java.util.concurrent.CompletionStage<java.lang.Void> |
runAfterBothAsync(java.util.concurrent.CompletionStage<?> other,
java.lang.Runnable action) |
java.util.concurrent.CompletionStage<java.lang.Void> |
runAfterBothAsync(java.util.concurrent.CompletionStage<?> other,
java.lang.Runnable action,
java.util.concurrent.Executor executor) |
java.util.concurrent.CompletionStage<java.lang.Void> |
runAfterEither(java.util.concurrent.CompletionStage<?> other,
java.lang.Runnable action) |
java.util.concurrent.CompletionStage<java.lang.Void> |
runAfterEitherAsync(java.util.concurrent.CompletionStage<?> other,
java.lang.Runnable action) |
java.util.concurrent.CompletionStage<java.lang.Void> |
runAfterEitherAsync(java.util.concurrent.CompletionStage<?> other,
java.lang.Runnable action,
java.util.concurrent.Executor executor) |
java.util.concurrent.CompletionStage<java.lang.Void> |
thenAccept(java.util.function.Consumer<? super T> action) |
java.util.concurrent.CompletionStage<java.lang.Void> |
thenAcceptAsync(java.util.function.Consumer<? super T> action) |
java.util.concurrent.CompletionStage<java.lang.Void> |
thenAcceptAsync(java.util.function.Consumer<? super T> action,
java.util.concurrent.Executor executor) |
<U> java.util.concurrent.CompletionStage<java.lang.Void> |
thenAcceptBoth(java.util.concurrent.CompletionStage<? extends U> other,
java.util.function.BiConsumer<? super T,? super U> action) |
<U> java.util.concurrent.CompletionStage<java.lang.Void> |
thenAcceptBothAsync(java.util.concurrent.CompletionStage<? extends U> other,
java.util.function.BiConsumer<? super T,? super U> action) |
<U> java.util.concurrent.CompletionStage<java.lang.Void> |
thenAcceptBothAsync(java.util.concurrent.CompletionStage<? extends U> other,
java.util.function.BiConsumer<? super T,? super U> action,
java.util.concurrent.Executor executor) |
<U> java.util.concurrent.CompletionStage<U> |
thenApply(java.util.function.Function<? super T,? extends U> fn) |
<U> java.util.concurrent.CompletionStage<U> |
thenApplyAsync(java.util.function.Function<? super T,? extends U> fn) |
<U> java.util.concurrent.CompletionStage<U> |
thenApplyAsync(java.util.function.Function<? super T,? extends U> fn,
java.util.concurrent.Executor executor) |
<U,V> java.util.concurrent.CompletionStage<V> |
thenCombine(java.util.concurrent.CompletionStage<? extends U> other,
java.util.function.BiFunction<? super T,? super U,? extends V> fn) |
<U,V> java.util.concurrent.CompletionStage<V> |
thenCombineAsync(java.util.concurrent.CompletionStage<? extends U> other,
java.util.function.BiFunction<? super T,? super U,? extends V> fn) |
<U,V> java.util.concurrent.CompletionStage<V> |
thenCombineAsync(java.util.concurrent.CompletionStage<? extends U> other,
java.util.function.BiFunction<? super T,? super U,? extends V> fn,
java.util.concurrent.Executor executor) |
<U> java.util.concurrent.CompletionStage<U> |
thenCompose(java.util.function.Function<? super T,? extends java.util.concurrent.CompletionStage<U>> fn) |
<U> java.util.concurrent.CompletionStage<U> |
thenComposeAsync(java.util.function.Function<? super T,? extends java.util.concurrent.CompletionStage<U>> fn) |
<U> java.util.concurrent.CompletionStage<U> |
thenComposeAsync(java.util.function.Function<? super T,? extends java.util.concurrent.CompletionStage<U>> fn,
java.util.concurrent.Executor executor) |
java.util.concurrent.CompletionStage<java.lang.Void> |
thenRun(java.lang.Runnable action) |
java.util.concurrent.CompletionStage<java.lang.Void> |
thenRunAsync(java.lang.Runnable action) |
java.util.concurrent.CompletionStage<java.lang.Void> |
thenRunAsync(java.lang.Runnable action,
java.util.concurrent.Executor executor) |
java.util.concurrent.CompletableFuture<T> |
toCompletableFuture() |
java.util.concurrent.CompletionStage<T> |
whenComplete(java.util.function.BiConsumer<? super T,? super java.lang.Throwable> action) |
java.util.concurrent.CompletionStage<T> |
whenCompleteAsync(java.util.function.BiConsumer<? super T,? super java.lang.Throwable> action) |
java.util.concurrent.CompletionStage<T> |
whenCompleteAsync(java.util.function.BiConsumer<? super T,? super java.lang.Throwable> action,
java.util.concurrent.Executor executor) |
protected abstract java.util.concurrent.CompletionStage<T> delegate()
public <U> java.util.concurrent.CompletionStage<U> thenApply(java.util.function.Function<? super T,? extends U> fn)
thenApply in interface java.util.concurrent.CompletionStage<T>public <U> java.util.concurrent.CompletionStage<U> thenApplyAsync(java.util.function.Function<? super T,? extends U> fn)
thenApplyAsync in interface java.util.concurrent.CompletionStage<T>public <U> java.util.concurrent.CompletionStage<U> thenApplyAsync(java.util.function.Function<? super T,? extends U> fn, java.util.concurrent.Executor executor)
thenApplyAsync in interface java.util.concurrent.CompletionStage<T>public java.util.concurrent.CompletionStage<java.lang.Void> thenAccept(java.util.function.Consumer<? super T> action)
thenAccept in interface java.util.concurrent.CompletionStage<T>public java.util.concurrent.CompletionStage<java.lang.Void> thenAcceptAsync(java.util.function.Consumer<? super T> action)
thenAcceptAsync in interface java.util.concurrent.CompletionStage<T>public java.util.concurrent.CompletionStage<java.lang.Void> thenAcceptAsync(java.util.function.Consumer<? super T> action, java.util.concurrent.Executor executor)
thenAcceptAsync in interface java.util.concurrent.CompletionStage<T>public java.util.concurrent.CompletionStage<java.lang.Void> thenRun(java.lang.Runnable action)
thenRun in interface java.util.concurrent.CompletionStage<T>public java.util.concurrent.CompletionStage<java.lang.Void> thenRunAsync(java.lang.Runnable action)
thenRunAsync in interface java.util.concurrent.CompletionStage<T>public java.util.concurrent.CompletionStage<java.lang.Void> thenRunAsync(java.lang.Runnable action,
java.util.concurrent.Executor executor)
thenRunAsync in interface java.util.concurrent.CompletionStage<T>public <U,V> java.util.concurrent.CompletionStage<V> thenCombine(java.util.concurrent.CompletionStage<? extends U> other,
java.util.function.BiFunction<? super T,? super U,? extends V> fn)
thenCombine in interface java.util.concurrent.CompletionStage<T>public <U,V> java.util.concurrent.CompletionStage<V> thenCombineAsync(java.util.concurrent.CompletionStage<? extends U> other,
java.util.function.BiFunction<? super T,? super U,? extends V> fn)
thenCombineAsync in interface java.util.concurrent.CompletionStage<T>public <U,V> java.util.concurrent.CompletionStage<V> thenCombineAsync(java.util.concurrent.CompletionStage<? extends U> other,
java.util.function.BiFunction<? super T,? super U,? extends V> fn,
java.util.concurrent.Executor executor)
thenCombineAsync in interface java.util.concurrent.CompletionStage<T>public <U> java.util.concurrent.CompletionStage<java.lang.Void> thenAcceptBoth(java.util.concurrent.CompletionStage<? extends U> other,
java.util.function.BiConsumer<? super T,? super U> action)
thenAcceptBoth in interface java.util.concurrent.CompletionStage<T>public <U> java.util.concurrent.CompletionStage<java.lang.Void> thenAcceptBothAsync(java.util.concurrent.CompletionStage<? extends U> other,
java.util.function.BiConsumer<? super T,? super U> action)
thenAcceptBothAsync in interface java.util.concurrent.CompletionStage<T>public <U> java.util.concurrent.CompletionStage<java.lang.Void> thenAcceptBothAsync(java.util.concurrent.CompletionStage<? extends U> other,
java.util.function.BiConsumer<? super T,? super U> action,
java.util.concurrent.Executor executor)
thenAcceptBothAsync in interface java.util.concurrent.CompletionStage<T>public java.util.concurrent.CompletionStage<java.lang.Void> runAfterBoth(java.util.concurrent.CompletionStage<?> other,
java.lang.Runnable action)
runAfterBoth in interface java.util.concurrent.CompletionStage<T>public java.util.concurrent.CompletionStage<java.lang.Void> runAfterBothAsync(java.util.concurrent.CompletionStage<?> other,
java.lang.Runnable action)
runAfterBothAsync in interface java.util.concurrent.CompletionStage<T>public java.util.concurrent.CompletionStage<java.lang.Void> runAfterBothAsync(java.util.concurrent.CompletionStage<?> other,
java.lang.Runnable action,
java.util.concurrent.Executor executor)
runAfterBothAsync in interface java.util.concurrent.CompletionStage<T>public <U> java.util.concurrent.CompletionStage<U> applyToEither(java.util.concurrent.CompletionStage<? extends T> other, java.util.function.Function<? super T,U> fn)
applyToEither in interface java.util.concurrent.CompletionStage<T>public <U> java.util.concurrent.CompletionStage<U> applyToEitherAsync(java.util.concurrent.CompletionStage<? extends T> other, java.util.function.Function<? super T,U> fn)
applyToEitherAsync in interface java.util.concurrent.CompletionStage<T>public <U> java.util.concurrent.CompletionStage<U> applyToEitherAsync(java.util.concurrent.CompletionStage<? extends T> other, java.util.function.Function<? super T,U> fn, java.util.concurrent.Executor executor)
applyToEitherAsync in interface java.util.concurrent.CompletionStage<T>public java.util.concurrent.CompletionStage<java.lang.Void> acceptEither(java.util.concurrent.CompletionStage<? extends T> other, java.util.function.Consumer<? super T> action)
acceptEither in interface java.util.concurrent.CompletionStage<T>public java.util.concurrent.CompletionStage<java.lang.Void> acceptEitherAsync(java.util.concurrent.CompletionStage<? extends T> other, java.util.function.Consumer<? super T> action)
acceptEitherAsync in interface java.util.concurrent.CompletionStage<T>public java.util.concurrent.CompletionStage<java.lang.Void> acceptEitherAsync(java.util.concurrent.CompletionStage<? extends T> other, java.util.function.Consumer<? super T> action, java.util.concurrent.Executor executor)
acceptEitherAsync in interface java.util.concurrent.CompletionStage<T>public java.util.concurrent.CompletionStage<java.lang.Void> runAfterEither(java.util.concurrent.CompletionStage<?> other,
java.lang.Runnable action)
runAfterEither in interface java.util.concurrent.CompletionStage<T>public java.util.concurrent.CompletionStage<java.lang.Void> runAfterEitherAsync(java.util.concurrent.CompletionStage<?> other,
java.lang.Runnable action)
runAfterEitherAsync in interface java.util.concurrent.CompletionStage<T>public java.util.concurrent.CompletionStage<java.lang.Void> runAfterEitherAsync(java.util.concurrent.CompletionStage<?> other,
java.lang.Runnable action,
java.util.concurrent.Executor executor)
runAfterEitherAsync in interface java.util.concurrent.CompletionStage<T>public <U> java.util.concurrent.CompletionStage<U> thenCompose(java.util.function.Function<? super T,? extends java.util.concurrent.CompletionStage<U>> fn)
thenCompose in interface java.util.concurrent.CompletionStage<T>public <U> java.util.concurrent.CompletionStage<U> thenComposeAsync(java.util.function.Function<? super T,? extends java.util.concurrent.CompletionStage<U>> fn)
thenComposeAsync in interface java.util.concurrent.CompletionStage<T>public <U> java.util.concurrent.CompletionStage<U> thenComposeAsync(java.util.function.Function<? super T,? extends java.util.concurrent.CompletionStage<U>> fn, java.util.concurrent.Executor executor)
thenComposeAsync in interface java.util.concurrent.CompletionStage<T>public java.util.concurrent.CompletionStage<T> exceptionally(java.util.function.Function<java.lang.Throwable,? extends T> fn)
exceptionally in interface java.util.concurrent.CompletionStage<T>public java.util.concurrent.CompletionStage<T> whenComplete(java.util.function.BiConsumer<? super T,? super java.lang.Throwable> action)
whenComplete in interface java.util.concurrent.CompletionStage<T>public java.util.concurrent.CompletionStage<T> whenCompleteAsync(java.util.function.BiConsumer<? super T,? super java.lang.Throwable> action)
whenCompleteAsync in interface java.util.concurrent.CompletionStage<T>public java.util.concurrent.CompletionStage<T> whenCompleteAsync(java.util.function.BiConsumer<? super T,? super java.lang.Throwable> action, java.util.concurrent.Executor executor)
whenCompleteAsync in interface java.util.concurrent.CompletionStage<T>public <U> java.util.concurrent.CompletionStage<U> handle(java.util.function.BiFunction<? super T,java.lang.Throwable,? extends U> fn)
handle in interface java.util.concurrent.CompletionStage<T>public <U> java.util.concurrent.CompletionStage<U> handleAsync(java.util.function.BiFunction<? super T,java.lang.Throwable,? extends U> fn)
handleAsync in interface java.util.concurrent.CompletionStage<T>public <U> java.util.concurrent.CompletionStage<U> handleAsync(java.util.function.BiFunction<? super T,java.lang.Throwable,? extends U> fn, java.util.concurrent.Executor executor)
handleAsync in interface java.util.concurrent.CompletionStage<T>Copyright © 2015. All Rights Reserved.