(@NotNull BCronTimer cronTimer, @NotNull String cron, long times, long endTime, @NotNull String oneByOneKey)
| 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 |
no test coverage detected