Class JobTimerWheel
java.lang.Object
com.aizuda.snailjob.server.job.task.support.timer.JobTimerWheel
- Since:
- : 2.4.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidclearCache(String idempotentKey) static booleanstatic voidstatic voidstatic voidregisterWithJob(Supplier<TimerTask<String>> task, Duration delay) 工作流任务添加时间轮 虽然job和Workflow 添加时间轮方法逻辑一样为了后面做一些不同的逻辑,这里兼容分开写static voidregisterWithWorkflow(Supplier<TimerTask<String>> task, Duration delay) 定时任务添加时间轮
-
Constructor Details
-
JobTimerWheel
public JobTimerWheel()
-
-
Method Details
-
registerWithWorkflow
定时任务添加时间轮- Parameters:
task- 任务delay- 延迟时间
-
registerWithJob
工作流任务添加时间轮 虽然job和Workflow 添加时间轮方法逻辑一样为了后面做一些不同的逻辑,这里兼容分开写- Parameters:
task- 任务delay- 延迟时间
-
register
-
register
-
isExisted
-
clearCache
-