Class PeriodicScheduler
java.lang.Object
com.northconcepts.datapipeline.schedule.PeriodicScheduler
- All Implemented Interfaces:
Scheduler
Represents a fixed, cyclical schedule (for example: every 30 minutes starting now).
-
Constructor Summary
ConstructorsConstructorDescriptionPeriodicScheduler(long period) Creates a schedule that repeats everyperiodmilliseconds. -
Method Summary
Modifier and TypeMethodDescriptionlonggetNextTime(long fromMillis) Returns the next time in this schedule after the specified time.longReturns the time between scheduled events in milliseconds.toString()
-
Constructor Details
-
PeriodicScheduler
public PeriodicScheduler(long period) Creates a schedule that repeats everyperiodmilliseconds.
-
-
Method Details
-
getPeriod
public long getPeriod()Returns the time between scheduled events in milliseconds. -
getNextTime
public long getNextTime(long fromMillis) Description copied from interface:SchedulerReturns the next time in this schedule after the specified time.- Specified by:
getNextTimein interfaceScheduler
-
toString
-