mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-10-12 16:15:42 +00:00
perf[scheduler]: 将cron方法改为静态方法
This commit is contained in:
1 parent
84a5b9c0e9
commit
f4255b12f4
1 file changed
+1
-1
@@ -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