Class CronSchedule
- java.lang.Object
-
- com.github.kagkarlsson.scheduler.task.schedule.CronSchedule
-
- All Implemented Interfaces:
Schedule,Serializable
public class CronSchedule extends Object implements Schedule, Serializable
Spring-style cron-pattern schedule- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CronSchedule(String pattern)CronSchedule(String pattern, ZoneId zoneId)CronSchedule(String pattern, ZoneId zoneId, CronStyle cronStyle)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)InstantgetNextExecutionTime(ExecutionComplete executionComplete)StringgetPattern()ZoneIdgetZoneId()inthashCode()booleanisDeterministic()booleanisDisabled()StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.github.kagkarlsson.scheduler.task.schedule.Schedule
getInitialExecutionTime
-
-
-
-
Method Detail
-
getNextExecutionTime
public Instant getNextExecutionTime(ExecutionComplete executionComplete)
- Specified by:
getNextExecutionTimein interfaceSchedule
-
isDeterministic
public boolean isDeterministic()
- Specified by:
isDeterministicin interfaceSchedule
-
getPattern
public String getPattern()
-
getZoneId
public ZoneId getZoneId()
-
isDisabled
public boolean isDisabled()
- Specified by:
isDisabledin interfaceSchedule
-
-