@API(status=EXPERIMENTAL) public final class CancelableCompletableFuture<T> extends AbstractCancelableCompletableFuture<T>
CompletableFuture.AsynchronousCompletionTask
Modifier and Type | Method and Description |
---|---|
boolean |
cancel(boolean mayInterruptIfRunning) |
static <T> BiConsumer<T,Throwable> |
forwardTo(CompletableFuture<T> future) |
static <T> CompletableFuture<T> |
preserveCancelability(Future<?> future) |
newIncompleteFuture
acceptEither, acceptEitherAsync, acceptEitherAsync, allOf, anyOf, applyToEither, applyToEitherAsync, applyToEitherAsync, complete, completedFuture, completeExceptionally, exceptionally, get, get, getNow, getNumberOfDependents, handle, handleAsync, handleAsync, isCancelled, isCompletedExceptionally, isDone, join, obtrudeException, obtrudeValue, runAfterBoth, runAfterBothAsync, runAfterBothAsync, runAfterEither, runAfterEitherAsync, runAfterEitherAsync, runAsync, runAsync, supplyAsync, supplyAsync, thenAccept, thenAcceptAsync, thenAcceptAsync, thenAcceptBoth, thenAcceptBothAsync, thenAcceptBothAsync, thenApply, thenApplyAsync, thenApplyAsync, thenCombine, thenCombineAsync, thenCombineAsync, thenCompose, thenComposeAsync, thenComposeAsync, thenRun, thenRunAsync, thenRunAsync, toCompletableFuture, toString, whenComplete, whenCompleteAsync, whenCompleteAsync
public boolean cancel(boolean mayInterruptIfRunning)
public static <T> CompletableFuture<T> preserveCancelability(Future<?> future)
public static <T> BiConsumer<T,Throwable> forwardTo(CompletableFuture<T> future)
Copyright © 2015–2018 Zalando SE. All rights reserved.