T - a type of the successfully resolved promise valuepublic class CompletablePromise<T> extends CompletableFutureWrapper<T>
delegate| Constructor and Description |
|---|
CompletablePromise() |
CompletablePromise(CompletableFuture<T> delegate) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
complete(T value) |
boolean |
complete(T value,
Throwable ex) |
Promise<T> |
completeAsync(Supplier<? extends T> supplier) |
Promise<T> |
completeAsync(Supplier<? extends T> supplier,
Executor executor) |
boolean |
completeExceptionally(Throwable ex) |
CompletablePromise<T> |
copy() |
CompletionStage<T> |
minimalCompletionStage() |
Promise<T> |
minimalPromise() |
CompletableFuture<T> |
toCompletableFuture() |
protected <U> CompletablePromise<U> |
wrapNew(CompletionStage<U> original) |
CompletionStage<T> |
α() |
exceptionallyAsync, exceptionallyAsync, exceptionallyCompose, exceptionallyComposeAsync, exceptionallyComposeAsync, failure, onFailure, onSuccess, success, thenCompose, thenComposeAsync, thenComposeAsyncgetNow, isCompletedExceptionally, joincancel, get, get, isCancelled, isDoneacceptEither, acceptEitherAsync, acceptEitherAsync, applyToEither, applyToEitherAsync, applyToEitherAsync, exceptionally, handle, handleAsync, handleAsync, runAfterBoth, runAfterBothAsync, runAfterBothAsync, runAfterEither, runAfterEitherAsync, runAfterEitherAsync, thenAccept, thenAcceptAsync, thenAcceptAsync, thenAcceptBoth, thenAcceptBothAsync, thenAcceptBothAsync, thenApply, thenApplyAsync, thenApplyAsync, thenCombine, thenCombineAsync, thenCombineAsync, thenRun, thenRunAsync, thenRunAsync, whenComplete, whenCompleteAsync, whenCompleteAsync, wraptoStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitacceptEither, acceptEitherAsync, acceptEitherAsync, applyToEither, applyToEitherAsync, applyToEitherAsync, as, defaultAsyncOn, delay, delay, delay, delay, dependent, dependent, exceptionally, getNow, handle, handleAsync, handleAsync, onCancel, onTimeout, onTimeout, onTimeout, onTimeout, onTimeout, onTimeout, onTimeout, onTimeout, orTimeout, orTimeout, orTimeout, orTimeout, raw, runAfterBoth, runAfterBothAsync, runAfterBothAsync, runAfterEither, runAfterEitherAsync, runAfterEitherAsync, thenAccept, thenAcceptAsync, thenAcceptAsync, thenAcceptBoth, thenAcceptBothAsync, thenAcceptBothAsync, thenApply, thenApplyAsync, thenApplyAsync, thenCombine, thenCombineAsync, thenCombineAsync, thenFilter, thenFilter, thenFilterAsync, thenFilterAsync, thenFilterAsync, thenFilterAsync, thenRun, thenRunAsync, thenRunAsync, unwrap, whenComplete, whenCompleteAsync, whenCompleteAsyncpublic CompletablePromise()
public CompletablePromise(CompletableFuture<T> delegate)
public boolean complete(T value)
public boolean completeExceptionally(Throwable ex)
public CompletablePromise<T> copy()
public CompletionStage<T> minimalCompletionStage()
public CompletableFuture<T> toCompletableFuture()
toCompletableFuture in interface CompletionStage<T>toCompletableFuture in class CompletableFutureWrapper<T>public CompletionStage<T> α()
protected <U> CompletablePromise<U> wrapNew(CompletionStage<U> original)
wrapNew in class CompletableFutureWrapper<T>Copyright © 2021. All rights reserved.