每天的某个时刻(hour, minute, second)。 需要在事务内使用。 @param hour 小时 @param minute 分钟 @param second 秒 @param handleClass 回调class @param customData 自定义数据 @return 自动生成的timerId @throws ParseException CronTimer表达式解析异常
(int hour, int minute, int second, @NotNull Class<? extends TimerHandle> handleClass, @Nullable Bean customData)
| 404 | * @throws ParseException CronTimer表达式解析异常 |
| 405 | */ |
| 406 | public @NotNull String scheduleDay(int hour, int minute, int second, |
| 407 | @NotNull Class<? extends TimerHandle> handleClass, |
| 408 | @Nullable Bean customData) throws ParseException { |
| 409 | var cron = second + " " + minute + " " + hour + " * * ?"; |
| 410 | return schedule(cron, handleClass, customData); |
| 411 | } |
| 412 | |
| 413 | /** |
| 414 | * 调度一个根据Cron表达式描述的Timer。 |