add parseCST and fix cookie bug

This commit is contained in:
Looly
2019-10-05 18:18:57 +08:00
parent 476285b302
commit a4515e218b
20 changed files with 198 additions and 120 deletions

View File

@@ -145,9 +145,9 @@ public class CronUtil {
/**
* 开始
*
* @param isDeamon 是否以守护线程方式启动如果为true则在调用{@link #stop()}方法后执行的定时任务立即结束,否则等待执行完毕才结束。
* @param isDaemon 是否以守护线程方式启动如果为true则在调用{@link #stop()}方法后执行的定时任务立即结束,否则等待执行完毕才结束。
*/
synchronized public static void start(boolean isDeamon) {
synchronized public static void start(boolean isDaemon) {
if (scheduler.isStarted()) {
throw new UtilException("Scheduler has been started, please stop it first!");
}
@@ -167,7 +167,7 @@ public class CronUtil {
}
schedule(crontabSetting);
scheduler.start(isDeamon);
scheduler.start(isDaemon);
}
/**

View File

@@ -126,7 +126,7 @@ public class Scheduler implements Serializable {
*
* @return 是否为守护线程
*/
public boolean isDeamon() {
public boolean isDaemon() {
return this.daemon;
}
@@ -362,11 +362,11 @@ public class Scheduler implements Serializable {
/**
* 启动
*
* @param isDeamon 是否以守护线程方式启动如果为true则在调用{@link #stop()}方法后执行的定时任务立即结束,否则等待执行完毕才结束。
* @param isDaemon 是否以守护线程方式启动如果为true则在调用{@link #stop()}方法后执行的定时任务立即结束,否则等待执行完毕才结束。
* @return this
*/
public Scheduler start(boolean isDeamon) {
this.daemon = isDeamon;
public Scheduler start(boolean isDaemon) {
this.daemon = isDaemon;
return start();
}