Package org.aoju.bus.cron
Class Configure
java.lang.Object
org.aoju.bus.cron.Configure
定时任务配置类
- Since:
- Java 17+
- Version:
- 6.5.0
- Author:
- Kimi Liu
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription获得时区,默认为TimeZone.getDefault()boolean是否支持秒匹配setMatchSecond(boolean isMatchSecond) 设置是否支持秒匹配,默认不使用setTimeZone(TimeZone timezone) 设置时区
-
Field Details
-
timezone
时区 -
matchSecond
protected boolean matchSecond是否支持秒匹配
-
-
Constructor Details
-
Configure
public Configure()
-
-
Method Details
-
getTimeZone
获得时区,默认为TimeZone.getDefault()- Returns:
- 时区
-
setTimeZone
设置时区- Parameters:
timezone- 时区- Returns:
- this
-
isMatchSecond
public boolean isMatchSecond()是否支持秒匹配- Returns:
true使用,false不使用
-
setMatchSecond
设置是否支持秒匹配,默认不使用- Parameters:
isMatchSecond-true支持,false不支持- Returns:
- this
-