Uses of Class
cloud.opencode.base.cron.CronBuilder

Packages that use CronBuilder
Package
Description
 
  • Uses of CronBuilder in cloud.opencode.base.cron

    Methods in cloud.opencode.base.cron that return CronBuilder
    Modifier and Type
    Method
    Description
    CronBuilder.at(int hour, int minute)
    Sets hour and minute for execution 设置执行的小时和分钟
    OpenCron.builder()
    Creates a new cron expression builder 创建新的Cron表达式构建器
    CronBuilder.create()
    Creates a new builder 创建新构建器
    CronBuilder.day()
    Sets to every day (default, no-op) 设置为每天(默认,无操作)
    CronBuilder.dayOfMonth(int d)
    Sets the day-of-month field 设置月中日字段
    CronBuilder.dayOfMonthRange(int from, int to)
    Sets the day-of-month field to a range (e.g., 10-20) 设置月中日字段为范围(如10-20)
    CronBuilder.dayOfWeek(DayOfWeek dow)
    Sets the day of week from DayOfWeekDayOfWeek 设置星期几
    CronBuilder.every()
    Creates a new builder with fluent "every" semantics 创建具有"每"语义的新构建器
    CronBuilder.everyDays(int n)
    Creates schedule that fires every N days at midnight 创建每N天午夜触发的调度
    CronBuilder.everyHours(int n)
    Creates schedule that fires every N hours 创建每N小时触发的调度
    CronBuilder.everyMinutes(int n)
    Creates schedule that fires every N minutes 创建每N分钟触发的调度
    CronBuilder.everySeconds(int n)
    Creates schedule that fires every N seconds (6-field cron) 创建每N秒触发的调度(6字段cron)
    CronBuilder.friday()
    Sets to Friday 设置为星期五
    CronBuilder.hour(int h)
    Sets the hour field 设置小时字段
    CronBuilder.hourRange(int from, int to)
    Sets the hour field to a range 设置小时字段为范围
    CronBuilder.lastDayOfMonth()
    Sets to the last day of the month (L) 设置为月最后一天(L)
    CronBuilder.lastDayOfMonth(int offset)
    Sets to N days before the last day of month (L-N) 设置为月最后一天前N天(L-N)
    CronBuilder.lastDayOfWeek(DayOfWeek dow)
    Sets to the last occurrence of a day of week in the month (nL) 设置为月中最后一个某星期几(nL)
    CronBuilder.lastWeekdayOfMonth()
    Sets to the last weekday of the month (LW) 设置为月最后一个工作日(LW)
    CronBuilder.minute(int m)
    Sets the minute field 设置分钟字段
    CronBuilder.minuteRange(int from, int to)
    Sets the minute field to a range 设置分钟字段为范围
    CronBuilder.monday()
    Sets to Monday 设置为星期一
    CronBuilder.month(int m)
    Sets the month field 设置月份字段
    CronBuilder.monthRange(int from, int to)
    Sets the month field to a range (e.g., 3-9) 设置月份字段为范围(如3-9)
    CronBuilder.nearestWeekday(int day)
    Sets to the nearest weekday to a specific day (nW) 设置为最接近指定日的工作日(nW)
    CronBuilder.nthDayOfWeek(DayOfWeek dow, int nth)
    Sets to the Nth occurrence of a day of week in the month (n#m) 设置为月中第N个某星期几(n#m)
    CronBuilder.saturday()
    Sets to Saturday 设置为星期六
    CronBuilder.second(int s)
    Sets the second field (enables 6-field cron format) 设置秒字段(启用6字段cron格式)
    CronBuilder.secondRange(int from, int to)
    Sets the second field to a range (enables 6-field cron) 设置秒字段为范围(启用6字段cron)
    CronBuilder.sunday()
    Sets to Sunday 设置为星期日
    CronBuilder.thursday()
    Sets to Thursday 设置为星期四
    CronBuilder.tuesday()
    Sets to Tuesday 设置为星期二
    CronBuilder.wednesday()
    Sets to Wednesday 设置为星期三
    CronBuilder.weekdays()
    Sets to weekdays (Monday-Friday) 设置为工作日(周一到周五)
    CronBuilder.weekends()
    Sets to weekends (Saturday-Sunday) 设置为周末(周六和周日)