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

Method initCronTimer

ZezeJava/ZezeJava/src/main/java/Zeze/Component/Timer.java:1059–1066  ·  view source on GitHub ↗
(@NotNull BCronTimer cronTimer, @NotNull String cron, long times, long endTime,
									 @NotNull String oneByOneKey)

Source from the content-addressed store, hash-verified

1057 }
1058
1059 public static void initCronTimer(@NotNull BCronTimer cronTimer, @NotNull String cron, long times, long endTime,
1060 @NotNull String oneByOneKey) throws ParseException {
1061 cronTimer.setCronExpression(cron);
1062 cronTimer.setNextExpectedTime(cronNextTime(cron, System.currentTimeMillis()));
1063 cronTimer.setRemainTimes(times);
1064 cronTimer.setEndTime(endTime);
1065 cronTimer.setOneByOneKey(oneByOneKey);
1066 }
1067
1068 public static boolean nextCronTimer(@NotNull BCronTimer cronTimer, boolean missfire) throws ParseException {
1069 // check remain times

Callers 12

scheduleMethod · 0.95
scheduleNamedMethod · 0.95
scheduleOnlineNamedMethod · 0.95
scheduleOnlineMethod · 0.95
scheduleOnlineHotMethod · 0.95
scheduleOfflineMethod · 0.95
scheduleOnlineNamedMethod · 0.95
scheduleOnlineMethod · 0.95
scheduleOnlineHotMethod · 0.95
scheduleOfflineMethod · 0.95

Calls 6

cronNextTimeMethod · 0.95
setCronExpressionMethod · 0.80
setNextExpectedTimeMethod · 0.45
setRemainTimesMethod · 0.45
setEndTimeMethod · 0.45
setOneByOneKeyMethod · 0.45

Tested by

no test coverage detected