public class CustomizablePromiseDecorator<T> extends ExtendedPromiseDecorator<T>
delegate| Constructor and Description |
|---|
CustomizablePromiseDecorator(Promise<T> delegate,
PromiseCustomizer customizer) |
| Modifier and Type | Method and Description |
|---|---|
DependentPromise<T> |
dependent()
Converts this
Promise to a DependentPromise
The returned DependentPromise does not implicitly enlist any CompletionStage
for cancellation (neither self, nor passed as arguments to combining methods);
only enlisting via explicit parameter is supported |
DependentPromise<T> |
dependent(Set<PromiseOrigin> defaultEnlistOptions)
Converts this
Promise to a DependentPromise
The returned DependentPromise does implicitly enlist CompletionStage
for cancellation (either self, and/or passed as arguments to combining methods)
according to defaultEnlistOptions parameter |
protected <U,V> BiConsumer<U,V> |
wrapArgument(BiConsumer<U,V> original,
boolean async) |
protected <U,V,R> BiFunction<U,V,R> |
wrapArgument(BiFunction<U,V,R> original,
boolean async) |
protected <U> CompletionStage<U> |
wrapArgument(CompletionStage<U> original,
boolean async) |
protected <U> Consumer<U> |
wrapArgument(Consumer<U> original,
boolean async) |
protected Executor |
wrapArgument(Executor original) |
protected <U,R> Function<U,R> |
wrapArgument(Function<U,R> original,
boolean async,
boolean isCompose) |
protected Runnable |
wrapArgument(Runnable original,
boolean async) |
protected <U> Supplier<U> |
wrapArgument(Supplier<U> original,
boolean async) |
protected <U> Promise<U> |
wrapResult(CompletionStage<U> original) |
acceptEither, acceptEitherAsync, acceptEitherAsync, applyToEither, applyToEitherAsync, applyToEitherAsync, exceptionally, exceptionallyAsync, exceptionallyAsync, exceptionallyCompose, exceptionallyComposeAsync, exceptionallyComposeAsync, handle, handleAsync, handleAsync, onCancel, onTimeout, onTimeout, onTimeout, onTimeout, runAfterBoth, runAfterBothAsync, runAfterBothAsync, runAfterEither, runAfterEitherAsync, runAfterEitherAsync, thenAccept, thenAcceptAsync, thenAcceptAsync, thenAcceptBoth, thenAcceptBothAsync, thenAcceptBothAsync, thenApply, thenApplyAsync, thenApplyAsync, thenCombine, thenCombineAsync, thenCombineAsync, thenCompose, thenComposeAsync, thenComposeAsync, thenFilter, thenFilter, thenFilterAsync, thenFilterAsync, thenFilterAsync, thenFilterAsync, thenRun, thenRunAsync, thenRunAsync, whenComplete, whenCompleteAsync, whenCompleteAsync, wrapArgument, wrapNewdefaultAsyncOn, delay, delay, delay, delay, getNow, getNow, isCompletedExceptionally, join, onTimeout, onTimeout, onTimeout, onTimeout, orTimeout, orTimeout, orTimeout, orTimeout, raw, unwrapcancel, get, get, isCancelled, isDonewrap, αtoCompletableFuture, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waittoCompletableFuturepublic CustomizablePromiseDecorator(Promise<T> delegate, PromiseCustomizer customizer)
protected Runnable wrapArgument(Runnable original, boolean async)
wrapArgument in class ExtendedPromiseDecorator<T>protected <U,R> Function<U,R> wrapArgument(Function<U,R> original, boolean async, boolean isCompose)
wrapArgument in class ExtendedPromiseDecorator<T>protected <U> Consumer<U> wrapArgument(Consumer<U> original, boolean async)
wrapArgument in class ExtendedPromiseDecorator<T>protected <U> Supplier<U> wrapArgument(Supplier<U> original, boolean async)
wrapArgument in class ExtendedPromiseDecorator<T>protected <U,V,R> BiFunction<U,V,R> wrapArgument(BiFunction<U,V,R> original, boolean async)
wrapArgument in class ExtendedPromiseDecorator<T>protected <U,V> BiConsumer<U,V> wrapArgument(BiConsumer<U,V> original, boolean async)
wrapArgument in class ExtendedPromiseDecorator<T>protected <U> CompletionStage<U> wrapArgument(CompletionStage<U> original, boolean async)
wrapArgument in class ExtendedPromiseDecorator<T>protected Executor wrapArgument(Executor original)
wrapArgument in class ExtendedPromiseDecorator<T>protected <U> Promise<U> wrapResult(CompletionStage<U> original)
wrapResult in class ExtendedPromiseDecorator<T>public DependentPromise<T> dependent()
PromisePromise to a DependentPromise
The returned DependentPromise does not implicitly enlist any CompletionStage
for cancellation (neither self, nor passed as arguments to combining methods);
only enlisting via explicit parameter is supportedpublic DependentPromise<T> dependent(Set<PromiseOrigin> defaultEnlistOptions)
PromisePromise to a DependentPromise
The returned DependentPromise does implicitly enlist CompletionStage
for cancellation (either self, and/or passed as arguments to combining methods)
according to defaultEnlistOptions parameterdependent in interface Promise<T>dependent in class ExtendedPromiseDecorator<T>defaultEnlistOptions - defines what CompletionStage should be enlisted implicitly for cancellationCopyright © 2021. All rights reserved.