java.lang.Object
cn.wjybxx.sequential.UniPromise<T>
cn.wjybxx.sequential.UniScheduledPromise<T>
- 所有已实现的接口:
ICompletionStage<T>,IFuture<T>,IPromise<T>,IScheduledFuture<T>,IScheduledPromise<T>,Comparable<Delayed>,Delayed,Future<T>,ScheduledFuture<T>
@NotThreadSafe
public class UniScheduledPromise<T>
extends UniPromise<T>
implements IScheduledPromise<T>
- 作者:
- wjybxx date - 2024/1/30
-
嵌套类概要
从接口继承的嵌套类/接口 java.util.concurrent.Future
Future.State -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明long获取任务下次执行的延迟。voidsetTask(IScheduledFutureTask<? extends T> task) 注入关联的任务. 1.Promise需要了解任务的状态以支持用户的查询; 2.由于存在双向依赖,因此需要延迟注入;从类继承的方法 cn.wjybxx.sequential.UniPromise
asReadonly, await, await, awaitUninterruptibly, awaitUninterruptibly, cancel, catching, catching, catchingAsync, catchingAsync, completedPromise, completedPromise, composeApply, composeApply, composeApplyAsync, composeApplyAsync, composeCall, composeCall, composeCallAsync, composeCallAsync, composeCatching, composeCatching, composeCatchingAsync, composeCatchingAsync, composeHandle, composeHandle, composeHandleAsync, composeHandleAsync, exceptionNow, exceptionNow, executor, failedPromise, failedPromise, get, get, getNow, getNow, handle, handle, handleAsync, handleAsync, inheritContext, isCancelled, isComputing, isDone, isFailed, isFailedOrCancelled, isPending, isSucceeded, join, newIncompletePromise, onCompleted, onCompleted, onCompleted, onCompleted, onCompletedAsync, onCompletedAsync, onCompletedAsync, onCompletedAsync, resultNow, setCancelled, setComputing, setException, setResult, state, status, thenAccept, thenAccept, thenAcceptAsync, thenAcceptAsync, thenApply, thenApply, thenApplyAsync, thenApplyAsync, thenCall, thenCall, thenCallAsync, thenCallAsync, thenRun, thenRun, thenRunAsync, thenRunAsync, toFuture, trySetCancelled, trySetComputing, trySetComputing2, trySetException, trySetResult, tryTransferFrom, whenComplete, whenComplete, whenCompleteAsync, whenCompleteAsync从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 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
-
构造器详细资料
-
UniScheduledPromise
public UniScheduledPromise() -
UniScheduledPromise
-
-
方法详细资料
-
setTask
从接口复制的说明:IScheduledPromise注入关联的任务. 1.Promise需要了解任务的状态以支持用户的查询; 2.由于存在双向依赖,因此需要延迟注入;- 指定者:
setTask在接口中IScheduledPromise<T>- 参数:
task- promise关联的任务
-
getDelay
从接口复制的说明:IScheduledFuture获取任务下次执行的延迟。 ps:该接口的可见性取决于实现,某些实现不提供即时的可见性,查询可能是不准确的。- 指定者:
getDelay在接口中Delayed- 指定者:
getDelay在接口中IScheduledFuture<T>
-