MCPcopy Create free account
hub / github.com/e2wugui/zeze / scheduleDay

Method scheduleDay

ZezeJava/ZezeJava/src/main/java/Zeze/Component/Timer.java:406–411  ·  view source on GitHub ↗

每天的某个时刻(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)

Source from the content-addressed store, hash-verified

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。

Callers

nothing calls this directly

Calls 1

scheduleMethod · 0.95

Tested by

no test coverage detected