Class PeriodicScheduler

java.lang.Object
com.northconcepts.datapipeline.schedule.PeriodicScheduler
All Implemented Interfaces:
Scheduler

public class PeriodicScheduler extends Object implements Scheduler
Represents a fixed, cyclical schedule (for example: every 30 minutes starting now).
  • Constructor Details

    • PeriodicScheduler

      public PeriodicScheduler(long period)
      Creates a schedule that repeats every period milliseconds.
  • Method Details

    • getPeriod

      public long getPeriod()
      Returns the time between scheduled events in milliseconds.
    • getNextTime

      public long getNextTime(long fromMillis)
      Description copied from interface: Scheduler
      Returns the next time in this schedule after the specified time.
      Specified by:
      getNextTime in interface Scheduler
    • toString

      public String toString()
      Overrides:
      toString in class Object