- 所有超级接口:
Comparable<Delayed>,Delayed,Future<V>,ICompletionStage<V>,IFuture<V>,IPromise<V>,IScheduledFuture<V>,ScheduledFuture<V>
- 所有已知实现类:
ScheduledPromise,UniScheduledPromise
定时任务关联的Promise
- 作者:
- wjybxx date - 2024/1/29
-
嵌套类概要
从接口继承的嵌套类/接口 java.util.concurrent.Future
Future.State -
方法概要
修饰符和类型方法说明voidsetTask(IScheduledFutureTask<? extends V> task) 注入关联的任务. 1.Promise需要了解任务的状态以支持用户的查询; 2.由于存在双向依赖,因此需要延迟注入;从接口继承的方法 cn.wjybxx.concurrent.ICompletionStage
executor, toCompletableFuture, toFuture从接口继承的方法 cn.wjybxx.concurrent.IFuture
asReadonly, await, await, awaitUninterruptibly, awaitUninterruptibly, cancel, catching, catching, catchingAsync, catchingAsync, composeApply, composeApply, composeApplyAsync, composeApplyAsync, composeCall, composeCall, composeCallAsync, composeCallAsync, composeCatching, composeCatching, composeCatchingAsync, composeCatchingAsync, composeHandle, composeHandle, composeHandleAsync, composeHandleAsync, exceptionNow, exceptionNow, get, get, getNow, getNow, handle, handle, handleAsync, handleAsync, isCancelled, isComputing, isDone, isFailed, isFailedOrCancelled, isPending, isSucceeded, join, onCompleted, onCompleted, onCompleted, onCompleted, onCompletedAsync, onCompletedAsync, onCompletedAsync, onCompletedAsync, resultNow, state, status, thenAccept, thenAccept, thenAcceptAsync, thenAcceptAsync, thenApply, thenApply, thenApplyAsync, thenApplyAsync, thenCall, thenCall, thenCallAsync, thenCallAsync, thenRun, thenRun, thenRunAsync, thenRunAsync, whenComplete, whenComplete, whenCompleteAsync, whenCompleteAsync从接口继承的方法 cn.wjybxx.concurrent.IPromise
setCancelled, setComputing, setException, setResult, trySetCancelled, trySetComputing, trySetComputing2, trySetException, trySetResult, tryTransferFrom从接口继承的方法 cn.wjybxx.concurrent.IScheduledFuture
compareTo, getDelay
-
方法详细资料
-
setTask
注入关联的任务. 1.Promise需要了解任务的状态以支持用户的查询; 2.由于存在双向依赖,因此需要延迟注入;- 参数:
task- promise关联的任务
-