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

Method scheduleMonth

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

每月第N(monthDay)天的某个时刻(hour,minute,second)。 需要在事务内使用。 @param monthDay 月内第几天 @param hour 小时 @param minute 分钟 @param second 秒 @param handleClass 回调class @param customData 自定义数据 @return 自动生成的timerId @throws ParseException CronTimer表达式解析异常

(int monthDay, int hour, int minute, int second,
										 @NotNull Class<? extends TimerHandle> handleClass,
										 @Nullable Bean customData)

Source from the content-addressed store, hash-verified

365 * @throws ParseException CronTimer表达式解析异常
366 */
367 public @NotNull String scheduleMonth(int monthDay, int hour, int minute, int second,
368 @NotNull Class<? extends TimerHandle> handleClass,
369 @Nullable Bean customData) throws ParseException {
370 var cron = second + " " + minute + " " + hour + " " + monthDay + " * ?";
371 return schedule(cron, handleClass, customData);
372 }
373
374 /**
375 * 每周第N(weekDay)天的某个时刻(hour, minute, second)。

Callers

nothing calls this directly

Calls 1

scheduleMethod · 0.95

Tested by

no test coverage detected