开发者

How do I add to my Quartz Job DisallowConcurrenExecution?

开发者 https://www.devze.com 2023-03-07 06:40 出处:网络
How do I add to my Quartz Job DisallowConcurrenExecution? I am new to Quar开发者_如何学Ctz 2.0, but I implemented a StatefulJobIf you implement StatefulJob, then you automatically inherit the @Disall

How do I add to my Quartz Job DisallowConcurrenExecution?

I am new to Quar开发者_如何学Ctz 2.0, but I implemented a StatefulJob


If you implement StatefulJob, then you automatically inherit the @DisallowConcurrenExecution annotation.

You can instead tag your class with the annotation (and other related annotation for re-persisting the JobDataMap after execution) - and not implement StatefulJob and have the same affect.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号