类 DelegatingCompletableFuture<T>
java.lang.Object
java.util.concurrent.CompletableFuture<T>
cn.taketoday.util.concurrent.DelegatingCompletableFuture<T>
- 类型参数:
T- the result type returned by this Future'sgetmethod
- 所有已实现的接口:
FutureListener<ListenableFuture<T>>,CompletionStage<T>,Future<T>,EventListener
class DelegatingCompletableFuture<T>
extends CompletableFuture<T>
implements FutureListener<ListenableFuture<T>>
Extension of
CompletableFuture which allows for cancelling
a delegate along with the CompletableFuture itself.- 从以下版本开始:
- 4.0
- 作者:
- Juergen Hoeller, Harry Yang
-
嵌套类概要
从类继承的嵌套类/接口 java.util.concurrent.CompletableFuture
CompletableFuture.AsynchronousCompletionTask -
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明booleancancel(boolean mayInterruptIfRunning) voidoperationComplete(ListenableFuture<T> future) Invoked when the operation associated with theListenableFuturehas been completed.从类继承的方法 java.util.concurrent.CompletableFuture
acceptEither, acceptEitherAsync, acceptEitherAsync, allOf, anyOf, applyToEither, applyToEitherAsync, applyToEitherAsync, complete, completeAsync, completeAsync, completedFuture, completedStage, completeExceptionally, completeOnTimeout, copy, defaultExecutor, delayedExecutor, delayedExecutor, exceptionally, exceptionallyAsync, exceptionallyAsync, exceptionallyCompose, exceptionallyComposeAsync, exceptionallyComposeAsync, failedFuture, failedStage, get, get, getNow, getNumberOfDependents, handle, handleAsync, handleAsync, isCancelled, isCompletedExceptionally, isDone, join, minimalCompletionStage, newIncompleteFuture, obtrudeException, obtrudeValue, orTimeout, 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
-
字段详细资料
-
delegate
-
-
构造器详细资料
-
DelegatingCompletableFuture
-
-
方法详细资料
-
cancel
public boolean cancel(boolean mayInterruptIfRunning) -
operationComplete
从接口复制的说明:FutureListenerInvoked when the operation associated with theListenableFuturehas been completed.- 指定者:
operationComplete在接口中FutureListener<T>- 参数:
future- the sourceListenableFuturewhich called this callback- 抛出:
Exception
-