public class CompletionStageWrapper<T> extends AbstractPromiseLikeDecorator<T,CompletionStage<T>> implements Promise<T>
delegate| Modifier | Constructor and Description |
|---|---|
protected |
CompletionStageWrapper(CompletionStage<T> delegate) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancel(boolean mayInterruptIfRunning) |
static <T> Promise<T> |
from(CompletionStage<T> stage) |
static <T> Promise<T> |
from(CompletionStage<T> stage,
boolean strictPromise) |
T |
get() |
T |
get(long timeout,
TimeUnit unit) |
boolean |
isCancelled() |
boolean |
isCompletedExceptionally() |
boolean |
isDone() |
T |
join() |
protected <U> Promise<U> |
wrapNew(CompletionStage<U> original) |
acceptEither, acceptEitherAsync, acceptEitherAsync, applyToEither, applyToEitherAsync, applyToEitherAsync, exceptionally, exceptionallyAsync, exceptionallyAsync, exceptionallyCompose, exceptionallyComposeAsync, exceptionallyComposeAsync, handle, handleAsync, handleAsync, runAfterBoth, runAfterBothAsync, runAfterBothAsync, runAfterEither, runAfterEitherAsync, runAfterEitherAsync, thenAccept, thenAcceptAsync, thenAcceptAsync, thenAcceptBoth, thenAcceptBothAsync, thenAcceptBothAsync, thenApply, thenApplyAsync, thenApplyAsync, thenCombine, thenCombineAsync, thenCombineAsync, thenCompose, thenComposeAsync, thenComposeAsync, thenRun, thenRunAsync, thenRunAsync, whenComplete, whenCompleteAsync, whenCompleteAsync, wrap, αtoCompletableFuture, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitacceptEither, acceptEitherAsync, acceptEitherAsync, applyToEither, applyToEitherAsync, applyToEitherAsync, as, defaultAsyncOn, delay, delay, delay, delay, dependent, dependent, exceptionally, exceptionallyAsync, exceptionallyAsync, exceptionallyCompose, exceptionallyComposeAsync, exceptionallyComposeAsync, getNow, 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, thenCompose, thenComposeAsync, thenComposeAsync, thenFilter, thenFilter, thenFilterAsync, thenFilterAsync, thenFilterAsync, thenFilterAsync, thenRun, thenRunAsync, thenRunAsync, unwrap, whenComplete, whenCompleteAsync, whenCompleteAsynctoCompletableFutureprotected CompletionStageWrapper(CompletionStage<T> delegate)
public boolean cancel(boolean mayInterruptIfRunning)
public T get() throws InterruptedException, ExecutionException
get in interface Future<T>InterruptedExceptionExecutionExceptionpublic T get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
get in interface Future<T>InterruptedExceptionExecutionExceptionTimeoutExceptionpublic boolean isCompletedExceptionally()
isCompletedExceptionally in interface Promise<T>public boolean isCancelled()
isCancelled in interface Future<T>protected final <U> Promise<U> wrapNew(CompletionStage<U> original)
wrapNew in class AbstractPromiseLikeDecorator<T,CompletionStage<T>>public static <T> Promise<T> from(CompletionStage<T> stage)
public static <T> Promise<T> from(CompletionStage<T> stage, boolean strictPromise)
Copyright © 2021. All rights reserved.