Skip to content
This repository has been archived by the owner on Jun 18, 2020. It is now read-only.

请问如何执行瞬时任务 #2

Open
baoliwen opened this issue May 24, 2018 · 0 comments
Open

请问如何执行瞬时任务 #2

baoliwen opened this issue May 24, 2018 · 0 comments

Comments

@baoliwen
Copy link

baoliwen commented May 24, 2018

请问如何执行瞬时任务,比如:订单在7天后关闭。
比如quartz可以设置startData来设置一次性任务。

Trigger trigger = newTrigger()
.startAt(startDate)
.withIdentity(triggerKey)
.withSchedule(SimpleScheduleBuilder
.simpleSchedule()
.withMisfireHandlingInstructionFireNow())
.build();

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant