Package ru.slie.luna.scheduler
Class Schedule
java.lang.Object
ru.slie.luna.scheduler.Schedule
-
Method Summary
Modifier and TypeMethodDescriptionstatic SchedulecronEveryDay(int second, int minute, int hour) static SchedulecronEveryHour(int second, int minute) static SchedulecronEveryMinute(int second) static ScheduleforCronExpression(String cronExpression) static ScheduleforCronExpression(org.springframework.scheduling.support.CronExpression cronExpression) org.springframework.scheduling.support.CronExpressiongetNextRunDate(@Nullable LocalDateTime prevRunDate) static Schedulebooleanstatic SchedulerunOnce()static SchedulerunOnce(LocalDateTime dateTime) toString()
-
Method Details
-
getCronExpression
public org.springframework.scheduling.support.CronExpression getCronExpression() -
getInterval
-
isRunOnce
public boolean isRunOnce() -
forCronExpression
public static Schedule forCronExpression(org.springframework.scheduling.support.CronExpression cronExpression) -
forCronExpression
-
interval
-
cronEveryMinute
-
cronEveryHour
-
cronEveryDay
-
runOnce
-
runOnce
-
toString
-
getNextRunDate
-