mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-08-20 00:24:06 +00:00
perf[scheduler]: 将cron方法改为静态方法
This commit is contained in:
@@ -174,7 +174,7 @@ public abstract class SchedulerBus {
|
||||
/**
|
||||
* cron表达式执行的任务
|
||||
*/
|
||||
public void scheduleCron(Runnable runnable, String cron) {
|
||||
public static void scheduleCron(Runnable runnable, String cron) {
|
||||
if (SchedulerContext.isStop()) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user