mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
fix comment
This commit is contained in:
parent
b4c29d2f01
commit
90e77eeff1
@ -41,7 +41,7 @@ import java.util.concurrent.locks.ReentrantLock;
|
|||||||
* 其中:
|
* 其中:
|
||||||
*
|
*
|
||||||
* <pre>
|
* <pre>
|
||||||
* <strong>TaskLauncher</strong>:定时器每分钟调用一次(如果{@link Scheduler#isMatchSecond()}为<code>true</code>每秒调用一次),
|
* <strong>TaskLauncher</strong>:定时器每分钟调用一次(如果{@link Scheduler#isMatchSecond()}为{@code true}每秒调用一次),
|
||||||
* 负责检查<strong>TaskTable</strong>是否有匹配到此时间运行的Task
|
* 负责检查<strong>TaskTable</strong>是否有匹配到此时间运行的Task
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
@ -102,7 +102,7 @@ public class Scheduler implements Serializable {
|
|||||||
* 设置是否为守护线程<br>
|
* 设置是否为守护线程<br>
|
||||||
* 如果为true,则在调用{@link #stop()}方法后执行的定时任务立即结束,否则等待执行完毕才结束。默认非守护线程
|
* 如果为true,则在调用{@link #stop()}方法后执行的定时任务立即结束,否则等待执行完毕才结束。默认非守护线程
|
||||||
*
|
*
|
||||||
* @param on <code>true</code>为守护线程,否则非守护线程
|
* @param on {@code true}为守护线程,否则非守护线程
|
||||||
* @return this
|
* @return this
|
||||||
* @throws CronException 定时任务已经启动抛出此异常
|
* @throws CronException 定时任务已经启动抛出此异常
|
||||||
*/
|
*/
|
||||||
@ -131,7 +131,7 @@ public class Scheduler implements Serializable {
|
|||||||
/**
|
/**
|
||||||
* 是否支持秒匹配
|
* 是否支持秒匹配
|
||||||
*
|
*
|
||||||
* @return <code>true</code>使用,<code>false</code>不使用
|
* @return {@code true}使用,{@code false}不使用
|
||||||
*/
|
*/
|
||||||
public boolean isMatchSecond() {
|
public boolean isMatchSecond() {
|
||||||
return this.config.isMatchSecond();
|
return this.config.isMatchSecond();
|
||||||
@ -140,7 +140,7 @@ public class Scheduler implements Serializable {
|
|||||||
/**
|
/**
|
||||||
* 设置是否支持秒匹配,默认不使用
|
* 设置是否支持秒匹配,默认不使用
|
||||||
*
|
*
|
||||||
* @param isMatchSecond <code>true</code>支持,<code>false</code>不支持
|
* @param isMatchSecond {@code true}支持,{@code false}不支持
|
||||||
* @return this
|
* @return this
|
||||||
*/
|
*/
|
||||||
public Scheduler setMatchSecond(boolean isMatchSecond) {
|
public Scheduler setMatchSecond(boolean isMatchSecond) {
|
||||||
@ -380,7 +380,7 @@ public class Scheduler implements Serializable {
|
|||||||
throw new CronException("Schedule is started!");
|
throw new CronException("Schedule is started!");
|
||||||
}
|
}
|
||||||
|
|
||||||
// 无界线程池,确保每一个需要执行的线程都可以及时运行,同时复用已有现成避免线程重复创建
|
// 无界线程池,确保每一个需要执行的线程都可以及时运行,同时复用已有线程避免线程重复创建
|
||||||
this.threadExecutor = ExecutorBuilder.create().useSynchronousQueue().setThreadFactory(//
|
this.threadExecutor = ExecutorBuilder.create().useSynchronousQueue().setThreadFactory(//
|
||||||
ThreadFactoryBuilder.create().setNamePrefix("hutool-cron-").setDaemon(this.daemon).build()//
|
ThreadFactoryBuilder.create().setNamePrefix("hutool-cron-").setDaemon(this.daemon).build()//
|
||||||
).build();
|
).build();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user