Class RecurringJob

java.lang.Object
org.jobrunr.jobs.AbstractJob
org.jobrunr.jobs.RecurringJob
All Implemented Interfaces:
Lockable
Direct Known Subclasses:
RecurringJobUIModel

public class RecurringJob extends AbstractJob
  • Constructor Details

  • Method Details

    • getId

      public String getId()
      Specified by:
      getId in class AbstractJob
    • getScheduleExpression

      public String getScheduleExpression()
    • toScheduledJob

      public Job toScheduledJob()
      Returns the next job to for this recurring job based on the current instant.
      Returns:
      the next job to for this recurring job based on the current instant.
    • toScheduledJobs

      public List<Job> toScheduledJobs(Instant from, Instant upTo)
      Creates all jobs that must be scheduled between the given start and end time.
      Parameters:
      from - the start time from which to create Scheduled Jobs
      upTo - the end time until which to create Scheduled Jobs
      Returns:
      creates all jobs that must be scheduled
    • toEnqueuedJob

      public Job toEnqueuedJob()
    • getZoneId

      public String getZoneId()
    • getCreatedAt

      public Instant getCreatedAt()
    • getNextRun

      public Instant getNextRun()
    • getNextRun

      public Instant getNextRun(Instant sinceInstant)
    • toString

      public String toString()
      Overrides:
      toString in class Object