Class SingleTimeTaskImpl
java.lang.Object
cool.scx.scheduling.single_time.SingleTimeTaskImpl
- All Implemented Interfaces:
ScheduleTask<SingleTimeTask>,SingleTimeTask
单次执行的任务
- Version:
- 0.0.1
- Author:
- scx567888
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecutor(ScheduledExecutorService executor) 执行器expirationPolicy(ExpirationPolicy expirationPolicy) 过期策略设置错误处理器start()启动任务task(cool.scx.function.ConsumerX<TaskContext, ?> task) 设置任务Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface cool.scx.scheduling.ScheduleTask
startMethods inherited from interface cool.scx.scheduling.single_time.SingleTimeTask
maxRunCount, startDelay, startTime
-
Constructor Details
-
SingleTimeTaskImpl
public SingleTimeTaskImpl()
-
-
Method Details
-
startTime
- Specified by:
startTimein interfaceSingleTimeTask
-
expirationPolicy
Description copied from interface:ScheduleTask过期策略- Specified by:
expirationPolicyin interfaceScheduleTask<SingleTimeTask>
-
executor
Description copied from interface:ScheduleTask执行器- Specified by:
executorin interfaceScheduleTask<SingleTimeTask>
-
task
Description copied from interface:ScheduleTask设置任务- Specified by:
taskin interfaceScheduleTask<SingleTimeTask>
-
onError
Description copied from interface:ScheduleTask设置错误处理器- Specified by:
onErrorin interfaceScheduleTask<SingleTimeTask>
-
start
Description copied from interface:ScheduleTask启动任务- Specified by:
startin interfaceScheduleTask<SingleTimeTask>
-