CompletableFuture<Void> |
CompletableFuture.acceptEither(CompletionStage<? extends T> other, Consumer<? super T> action) |
|
CompletableFuture<Void> |
CompletableFuture.acceptEitherAsync(CompletionStage<? extends T> other, Consumer<? super T> action) |
|
CompletableFuture<Void> |
CompletableFuture.acceptEitherAsync(CompletionStage<? extends T> other, Consumer<? super T> action, Executor executor) |
|
static CompletableFuture<Void> |
CompletableFuture.allOf(CompletableFuture<?>... cfs) |
返回一个新的CompletableFuture,当所有给定的CompletableFutures完成时,完成。
|
static CompletableFuture<Object> |
CompletableFuture.anyOf(CompletableFuture<?>... cfs) |
返回一个新的CompletableFuture,当任何一个给定的CompletableFutures完成时,完成相同的结果。
|
<U> CompletableFuture<U> |
CompletableFuture.applyToEither(CompletionStage<? extends T> other, Function<? super T,U> fn) |
|
<U> CompletableFuture<U> |
CompletableFuture.applyToEitherAsync(CompletionStage<? extends T> other, Function<? super T,U> fn) |
|
<U> CompletableFuture<U> |
CompletableFuture.applyToEitherAsync(CompletionStage<? extends T> other, Function<? super T,U> fn, Executor executor) |
|
CompletableFuture<T> |
CompletableFuture.completeAsync(Supplier<? extends T> supplier) |
使用默认执行程序从异步任务调用给定的供应商函数的结果,完成此CompletableFuture。
|
CompletableFuture<T> |
CompletableFuture.completeAsync(Supplier<? extends T> supplier, Executor executor) |
使用给定的执行器从异步任务调用给定的供应商函数的结果来完成此CompletableFuture。
|
static <U> CompletableFuture<U> |
CompletableFuture.completedFuture(U value) |
返回已经使用给定值完成的新的CompletableFuture。
|
CompletableFuture<T> |
CompletableFuture.completeOnTimeout(T value, long timeout, TimeUnit unit) |
如果在给定的超时之前未完成,则使用给定值完成此CompletableFuture。
|
CompletableFuture<Void> |
SubmissionPublisher.consume(Consumer<? super T> consumer) |
使用给定的Consumer功能处理所有已发布的项目。
|
CompletableFuture<T> |
CompletableFuture.copy() |
返回一个新的CompletableFuture,它在正常完成时正常完成,具有与此CompletableFuture相同的值。
|
CompletableFuture<T> |
CompletableFuture.exceptionally(Function<Throwable,? extends T> fn) |
返回一个新的CompletableFuture,当CompletableFuture完成时完成,结果是异常触发此CompletableFuture的完成特殊功能的给定功能;
否则,如果此CompletableFuture正常完成,则返回的CompletableFuture也会以相同的值正常完成。
|
static <U> CompletableFuture<U> |
CompletableFuture.failedFuture(Throwable ex) |
返回一个已经完成的新的CompletableFuture,特别是给定的异常。
|
<U> CompletableFuture<U> |
CompletableFuture.handle(BiFunction<? super T,Throwable,? extends U> fn) |
|
<U> CompletableFuture<U> |
CompletableFuture.handleAsync(BiFunction<? super T,Throwable,? extends U> fn) |
|
<U> CompletableFuture<U> |
CompletableFuture.handleAsync(BiFunction<? super T,Throwable,? extends U> fn, Executor executor) |
|
<U> CompletableFuture<U> |
CompletableFuture.newIncompleteFuture() |
返回由CompletionStage方法返回的类型的新的不完整的CompletableFuture。
|
CompletableFuture<T> |
CompletableFuture.orTimeout(long timeout, TimeUnit unit) |
|
CompletableFuture<Void> |
CompletableFuture.runAfterBoth(CompletionStage<?> other, Runnable action) |
|
CompletableFuture<Void> |
CompletableFuture.runAfterBothAsync(CompletionStage<?> other, Runnable action) |
|
CompletableFuture<Void> |
CompletableFuture.runAfterBothAsync(CompletionStage<?> other, Runnable action, Executor executor) |
|
CompletableFuture<Void> |
CompletableFuture.runAfterEither(CompletionStage<?> other, Runnable action) |
|
CompletableFuture<Void> |
CompletableFuture.runAfterEitherAsync(CompletionStage<?> other, Runnable action) |
|
CompletableFuture<Void> |
CompletableFuture.runAfterEitherAsync(CompletionStage<?> other, Runnable action, Executor executor) |
|
static CompletableFuture<Void> |
CompletableFuture.runAsync(Runnable runnable) |
|
static CompletableFuture<Void> |
CompletableFuture.runAsync(Runnable runnable, Executor executor) |
返回一个新的CompletableFuture,它在运行给定操作之后由在给定执行程序中运行的任务异步完成。
|
static <U> CompletableFuture<U> |
CompletableFuture.supplyAsync(Supplier<U> supplier) |
|
static <U> CompletableFuture<U> |
CompletableFuture.supplyAsync(Supplier<U> supplier, Executor executor) |
返回一个新的CompletableFuture,由给定执行器中运行的任务异步完成,并通过调用给定的供应商获得的值。
|
CompletableFuture<Void> |
CompletableFuture.thenAccept(Consumer<? super T> action) |
|
CompletableFuture<Void> |
CompletableFuture.thenAcceptAsync(Consumer<? super T> action) |
|
CompletableFuture<Void> |
CompletableFuture.thenAcceptAsync(Consumer<? super T> action, Executor executor) |
|
<U> CompletableFuture<Void> |
CompletableFuture.thenAcceptBoth(CompletionStage<? extends U> other, BiConsumer<? super T,? super U> action) |
|
<U> CompletableFuture<Void> |
CompletableFuture.thenAcceptBothAsync(CompletionStage<? extends U> other, BiConsumer<? super T,? super U> action) |
|
<U> CompletableFuture<Void> |
CompletableFuture.thenAcceptBothAsync(CompletionStage<? extends U> other, BiConsumer<? super T,? super U> action, Executor executor) |
|
<U> CompletableFuture<U> |
CompletableFuture.thenApply(Function<? super T,? extends U> fn) |
|
<U> CompletableFuture<U> |
CompletableFuture.thenApplyAsync(Function<? super T,? extends U> fn) |
|
<U> CompletableFuture<U> |
CompletableFuture.thenApplyAsync(Function<? super T,? extends U> fn, Executor executor) |
|
<U,V> CompletableFuture<V> |
CompletableFuture.thenCombine(CompletionStage<? extends U> other, BiFunction<? super T,? super U,? extends V> fn) |
|
<U,V> CompletableFuture<V> |
CompletableFuture.thenCombineAsync(CompletionStage<? extends U> other, BiFunction<? super T,? super U,? extends V> fn) |
|
<U,V> CompletableFuture<V> |
CompletableFuture.thenCombineAsync(CompletionStage<? extends U> other, BiFunction<? super T,? super U,? extends V> fn, Executor executor) |
|
<U> CompletableFuture<U> |
CompletableFuture.thenCompose(Function<? super T,? extends CompletionStage<U>> fn) |
|
<U> CompletableFuture<U> |
CompletableFuture.thenComposeAsync(Function<? super T,? extends CompletionStage<U>> fn) |
|
<U> CompletableFuture<U> |
CompletableFuture.thenComposeAsync(Function<? super T,? extends CompletionStage<U>> fn, Executor executor) |
|
CompletableFuture<Void> |
CompletableFuture.thenRun(Runnable action) |
|
CompletableFuture<Void> |
CompletableFuture.thenRunAsync(Runnable action) |
|
CompletableFuture<Void> |
CompletableFuture.thenRunAsync(Runnable action, Executor executor) |
|
CompletableFuture<T> |
CompletableFuture.toCompletableFuture() |
返回此CompletableFuture。
|
CompletableFuture<T> |
CompletionStage.toCompletableFuture() |
|
CompletableFuture<T> |
CompletableFuture.whenComplete(BiConsumer<? super T,? super Throwable> action) |
|
CompletableFuture<T> |
CompletableFuture.whenCompleteAsync(BiConsumer<? super T,? super Throwable> action) |
|
CompletableFuture<T> |
CompletableFuture.whenCompleteAsync(BiConsumer<? super T,? super Throwable> action, Executor executor) |
|