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

Method scheduleWeek

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

每周第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)

Source from the content-addressed store, hash-verified

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)。

Callers

nothing calls this directly

Calls 1

scheduleMethod · 0.95

Tested by

no test coverage detected