Class Configure

java.lang.Object
org.aoju.bus.cron.Configure

public class Configure extends Object
定时任务配置类
Since:
Java 17+
Author:
Kimi Liu
  • Field Details

    • timezone

      protected TimeZone timezone
      时区
    • matchSecond

      protected boolean matchSecond
      是否支持秒匹配
  • Constructor Details

    • Configure

      public Configure()
  • Method Details

    • getTimeZone

      public TimeZone getTimeZone()
      获得时区,默认为 TimeZone.getDefault()
      Returns:
      时区
    • setTimeZone

      public Configure setTimeZone(TimeZone timezone)
      设置时区
      Parameters:
      timezone - 时区
      Returns:
      this
    • isMatchSecond

      public boolean isMatchSecond()
      是否支持秒匹配
      Returns:
      true使用,false不使用
    • setMatchSecond

      public Configure setMatchSecond(boolean isMatchSecond)
      设置是否支持秒匹配,默认不使用
      Parameters:
      isMatchSecond - true支持,false不支持
      Returns:
      this