- All Implemented Interfaces:
Runnable
作业执行器
执行具体的作业,执行完毕销毁
- Since:
- Java 17+
- Version:
- 6.5.0
- Author:
- Kimi Liu
-
Constructor Summary
Constructors
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Executor
构造
- Parameters:
scheduler - 调度器
task - 被执行的任务
-
Method Details
-
getTask
获得原始任务对象
- Returns:
- 任务对象
-
getCronTask
获得原始任务对象
- Returns:
- 任务对象
-
run
public void run()
- Specified by:
run in interface Runnable