每周第N(weekDay)天的某个时刻(hour, minute, second)。 需要在事务内使用。 @param weekDay 一周的第几天 @param hour 小时 @param minute 分钟 @param second 秒 @param handleClass 回调class @param customData 自定义数据 @return 自动生成的timerId @throws ParseException CronTimer表达式解析异常
(int weekDay, int hour, int minute, int second, @NotNull Class<? extends TimerHandle> handleClass, @Nullable Bean customData)
| 385 | * @throws ParseException CronTimer表达式解析异常 |
| 386 | */ |
| 387 | public @NotNull String scheduleWeek(int weekDay, int hour, int minute, int second, |
| 388 | @NotNull Class<? extends TimerHandle> handleClass, |
| 389 | @Nullable Bean customData) throws ParseException { |
| 390 | var cron = second + " " + minute + " " + hour + " * * " + weekDay; |
| 391 | return schedule(cron, handleClass, customData); |
| 392 | } |
| 393 | |
| 394 | /** |
| 395 | * 每天的某个时刻(hour, minute, second)。 |