java.lang.Object
org.jooq.lambda.SameExecutorCompletionStage<T>
- All Implemented Interfaces:
CompletionStage<T>
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSameExecutorCompletionStage
(CompletionStage<T> delegate, Executor defaultExecutor) -
Method Summary
Modifier and TypeMethodDescriptionfinal CompletionStage
<Void> acceptEither
(CompletionStage<? extends T> other, Consumer<? super T> action) final CompletionStage
<Void> acceptEitherAsync
(CompletionStage<? extends T> other, Consumer<? super T> action) final CompletionStage
<Void> acceptEitherAsync
(CompletionStage<? extends T> other, Consumer<? super T> action, Executor executor) final <U> CompletionStage
<U> applyToEither
(CompletionStage<? extends T> other, Function<? super T, U> fn) final <U> CompletionStage
<U> applyToEitherAsync
(CompletionStage<? extends T> other, Function<? super T, U> fn) final <U> CompletionStage
<U> applyToEitherAsync
(CompletionStage<? extends T> other, Function<? super T, U> fn, Executor executor) final CompletionStage
<T> exceptionally
(Function<Throwable, ? extends T> fn) final <U> CompletionStage
<U> handle
(BiFunction<? super T, Throwable, ? extends U> fn) final <U> CompletionStage
<U> handleAsync
(BiFunction<? super T, Throwable, ? extends U> fn) final <U> CompletionStage
<U> handleAsync
(BiFunction<? super T, Throwable, ? extends U> fn, Executor executor) (package private) static final <T> SameExecutorCompletionStage
<T> of
(CompletionStage<T> delegate, Executor defaultExecutor) final CompletionStage
<Void> runAfterBoth
(CompletionStage<?> other, Runnable action) final CompletionStage
<Void> runAfterBothAsync
(CompletionStage<?> other, Runnable action) final CompletionStage
<Void> runAfterBothAsync
(CompletionStage<?> other, Runnable action, Executor executor) final CompletionStage
<Void> runAfterEither
(CompletionStage<?> other, Runnable action) final CompletionStage
<Void> runAfterEitherAsync
(CompletionStage<?> other, Runnable action) final CompletionStage
<Void> runAfterEitherAsync
(CompletionStage<?> other, Runnable action, Executor executor) final CompletionStage
<Void> thenAccept
(Consumer<? super T> action) final CompletionStage
<Void> thenAcceptAsync
(Consumer<? super T> action) final CompletionStage
<Void> thenAcceptAsync
(Consumer<? super T> action, Executor executor) final <U> CompletionStage
<Void> thenAcceptBoth
(CompletionStage<? extends U> other, BiConsumer<? super T, ? super U> action) final <U> CompletionStage
<Void> thenAcceptBothAsync
(CompletionStage<? extends U> other, BiConsumer<? super T, ? super U> action) final <U> CompletionStage
<Void> thenAcceptBothAsync
(CompletionStage<? extends U> other, BiConsumer<? super T, ? super U> action, Executor executor) final <U> CompletionStage
<U> final <U> CompletionStage
<U> thenApplyAsync
(Function<? super T, ? extends U> fn) final <U> CompletionStage
<U> thenApplyAsync
(Function<? super T, ? extends U> fn, Executor executor) final <U,
V> CompletionStage <V> thenCombine
(CompletionStage<? extends U> other, BiFunction<? super T, ? super U, ? extends V> fn) final <U,
V> CompletionStage <V> thenCombineAsync
(CompletionStage<? extends U> other, BiFunction<? super T, ? super U, ? extends V> fn) final <U,
V> CompletionStage <V> thenCombineAsync
(CompletionStage<? extends U> other, BiFunction<? super T, ? super U, ? extends V> fn, Executor executor) final <U> CompletionStage
<U> thenCompose
(Function<? super T, ? extends CompletionStage<U>> fn) final <U> CompletionStage
<U> thenComposeAsync
(Function<? super T, ? extends CompletionStage<U>> fn) final <U> CompletionStage
<U> thenComposeAsync
(Function<? super T, ? extends CompletionStage<U>> fn, Executor executor) final CompletionStage
<Void> final CompletionStage
<Void> thenRunAsync
(Runnable action) final CompletionStage
<Void> thenRunAsync
(Runnable action, Executor executor) final CompletableFuture
<T> final CompletionStage
<T> whenComplete
(BiConsumer<? super T, ? super Throwable> action) final CompletionStage
<T> whenCompleteAsync
(BiConsumer<? super T, ? super Throwable> action) final CompletionStage
<T> whenCompleteAsync
(BiConsumer<? super T, ? super Throwable> action, Executor executor) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.concurrent.CompletionStage
exceptionallyAsync, exceptionallyAsync, exceptionallyCompose, exceptionallyComposeAsync, exceptionallyComposeAsync
-
Field Details
-
delegate
-
defaultExecutor
-
-
Constructor Details
-
SameExecutorCompletionStage
SameExecutorCompletionStage(CompletionStage<T> delegate, Executor defaultExecutor)
-
-
Method Details
-
of
static final <T> SameExecutorCompletionStage<T> of(CompletionStage<T> delegate, Executor defaultExecutor) -
thenApply
- Specified by:
thenApply
in interfaceCompletionStage<T>
-
thenApplyAsync
- Specified by:
thenApplyAsync
in interfaceCompletionStage<T>
-
thenApplyAsync
public final <U> CompletionStage<U> thenApplyAsync(Function<? super T, ? extends U> fn, Executor executor) - Specified by:
thenApplyAsync
in interfaceCompletionStage<T>
-
thenAccept
- Specified by:
thenAccept
in interfaceCompletionStage<T>
-
thenAcceptAsync
- Specified by:
thenAcceptAsync
in interfaceCompletionStage<T>
-
thenAcceptAsync
- Specified by:
thenAcceptAsync
in interfaceCompletionStage<T>
-
thenRun
- Specified by:
thenRun
in interfaceCompletionStage<T>
-
thenRunAsync
- Specified by:
thenRunAsync
in interfaceCompletionStage<T>
-
thenRunAsync
- Specified by:
thenRunAsync
in interfaceCompletionStage<T>
-
thenCombine
public final <U,V> CompletionStage<V> thenCombine(CompletionStage<? extends U> other, BiFunction<? super T, ? super U, ? extends V> fn) - Specified by:
thenCombine
in interfaceCompletionStage<T>
-
thenCombineAsync
public final <U,V> CompletionStage<V> thenCombineAsync(CompletionStage<? extends U> other, BiFunction<? super T, ? super U, ? extends V> fn) - Specified by:
thenCombineAsync
in interfaceCompletionStage<T>
-
thenCombineAsync
public final <U,V> CompletionStage<V> thenCombineAsync(CompletionStage<? extends U> other, BiFunction<? super T, ? super U, ? extends V> fn, Executor executor) - Specified by:
thenCombineAsync
in interfaceCompletionStage<T>
-
thenAcceptBoth
public final <U> CompletionStage<Void> thenAcceptBoth(CompletionStage<? extends U> other, BiConsumer<? super T, ? super U> action) - Specified by:
thenAcceptBoth
in interfaceCompletionStage<T>
-
thenAcceptBothAsync
public final <U> CompletionStage<Void> thenAcceptBothAsync(CompletionStage<? extends U> other, BiConsumer<? super T, ? super U> action) - Specified by:
thenAcceptBothAsync
in interfaceCompletionStage<T>
-
thenAcceptBothAsync
public final <U> CompletionStage<Void> thenAcceptBothAsync(CompletionStage<? extends U> other, BiConsumer<? super T, ? super U> action, Executor executor) - Specified by:
thenAcceptBothAsync
in interfaceCompletionStage<T>
-
runAfterBoth
- Specified by:
runAfterBoth
in interfaceCompletionStage<T>
-
runAfterBothAsync
- Specified by:
runAfterBothAsync
in interfaceCompletionStage<T>
-
runAfterBothAsync
public final CompletionStage<Void> runAfterBothAsync(CompletionStage<?> other, Runnable action, Executor executor) - Specified by:
runAfterBothAsync
in interfaceCompletionStage<T>
-
applyToEither
public final <U> CompletionStage<U> applyToEither(CompletionStage<? extends T> other, Function<? super T, U> fn) - Specified by:
applyToEither
in interfaceCompletionStage<T>
-
applyToEitherAsync
public final <U> CompletionStage<U> applyToEitherAsync(CompletionStage<? extends T> other, Function<? super T, U> fn) - Specified by:
applyToEitherAsync
in interfaceCompletionStage<T>
-
applyToEitherAsync
public final <U> CompletionStage<U> applyToEitherAsync(CompletionStage<? extends T> other, Function<? super T, U> fn, Executor executor) - Specified by:
applyToEitherAsync
in interfaceCompletionStage<T>
-
acceptEither
public final CompletionStage<Void> acceptEither(CompletionStage<? extends T> other, Consumer<? super T> action) - Specified by:
acceptEither
in interfaceCompletionStage<T>
-
acceptEitherAsync
public final CompletionStage<Void> acceptEitherAsync(CompletionStage<? extends T> other, Consumer<? super T> action) - Specified by:
acceptEitherAsync
in interfaceCompletionStage<T>
-
acceptEitherAsync
public final CompletionStage<Void> acceptEitherAsync(CompletionStage<? extends T> other, Consumer<? super T> action, Executor executor) - Specified by:
acceptEitherAsync
in interfaceCompletionStage<T>
-
runAfterEither
- Specified by:
runAfterEither
in interfaceCompletionStage<T>
-
runAfterEitherAsync
- Specified by:
runAfterEitherAsync
in interfaceCompletionStage<T>
-
runAfterEitherAsync
public final CompletionStage<Void> runAfterEitherAsync(CompletionStage<?> other, Runnable action, Executor executor) - Specified by:
runAfterEitherAsync
in interfaceCompletionStage<T>
-
thenCompose
public final <U> CompletionStage<U> thenCompose(Function<? super T, ? extends CompletionStage<U>> fn) - Specified by:
thenCompose
in interfaceCompletionStage<T>
-
thenComposeAsync
public final <U> CompletionStage<U> thenComposeAsync(Function<? super T, ? extends CompletionStage<U>> fn) - Specified by:
thenComposeAsync
in interfaceCompletionStage<T>
-
thenComposeAsync
public final <U> CompletionStage<U> thenComposeAsync(Function<? super T, ? extends CompletionStage<U>> fn, Executor executor) - Specified by:
thenComposeAsync
in interfaceCompletionStage<T>
-
exceptionally
- Specified by:
exceptionally
in interfaceCompletionStage<T>
-
whenComplete
- Specified by:
whenComplete
in interfaceCompletionStage<T>
-
whenCompleteAsync
- Specified by:
whenCompleteAsync
in interfaceCompletionStage<T>
-
whenCompleteAsync
public final CompletionStage<T> whenCompleteAsync(BiConsumer<? super T, ? super Throwable> action, Executor executor) - Specified by:
whenCompleteAsync
in interfaceCompletionStage<T>
-
handle
- Specified by:
handle
in interfaceCompletionStage<T>
-
handleAsync
- Specified by:
handleAsync
in interfaceCompletionStage<T>
-
handleAsync
public final <U> CompletionStage<U> handleAsync(BiFunction<? super T, Throwable, ? extends U> fn, Executor executor) - Specified by:
handleAsync
in interfaceCompletionStage<T>
-
toCompletableFuture
- Specified by:
toCompletableFuture
in interfaceCompletionStage<T>
-