Class JobSchedule.FixedDelaySchedule

java.lang.Object
com.sodius.oslc.server.core.jobs.JobSchedule
com.sodius.oslc.server.core.jobs.JobSchedule.FixedDelaySchedule
All Implemented Interfaces:
Serializable
Enclosing class:
JobSchedule

public static final class JobSchedule.FixedDelaySchedule extends JobSchedule
Provides information for a job to schedule with a fixed delay.
Since:
3.11.0
See Also:
  • Method Details

    • getType

      public JobSchedule.Type getType()
      Specified by:
      getType in class JobSchedule
      Returns:
      the type of scheduling.
    • getInitialDelay

      public long getInitialDelay()
      Returns the initial delay before running the job, 0 if the job must run immediately.
      Returns:
      the initial delay
    • getDelay

      public long getDelay()
      Returns the delay between the termination of one execution and the commencement of the next.
      Returns:
      the delay
    • getUnit

      public TimeUnit getUnit()
      Return the unit of time for the two delay values.
      Returns:
      the delay unit
    • getDescription

      public String getDescription()
      Description copied from class: JobSchedule
      Returns a description of the schedule, for end-user understanding, typically inserted in audit events.
      Specified by:
      getDescription in class JobSchedule
      Returns:
      a description of the schedule
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in class JobSchedule
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in class JobSchedule