Package com.sodius.oslc.server.core.jobs
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
Provides information for a job to schedule with a fixed delay.
- Since:
- 3.11.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.sodius.oslc.server.core.jobs.JobSchedule
JobSchedule.FixedDelaySchedule, JobSchedule.FixedRateSchedule, JobSchedule.Type -
Method Summary
Modifier and TypeMethodDescriptionbooleanlonggetDelay()Returns the delay between the termination of one execution and the commencement of the next.Returns a description of the schedule, for end-user understanding, typically inserted in audit events.longReturns the initial delay before running the job, 0 if the job must run immediately.getType()ReturnsJobSchedule.Type.FIXED_DELAY.getUnit()Return the unit of time for the two delay values.inthashCode()Methods inherited from class com.sodius.oslc.server.core.jobs.JobSchedule
atFixedRate, disabled, toString, withFixedDelay
-
Method Details
-
getType
ReturnsJobSchedule.Type.FIXED_DELAY.- Specified by:
getTypein classJobSchedule- 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
Return the unit of time for the two delay values.- Returns:
- the delay unit
-
getDescription
Description copied from class:JobScheduleReturns a description of the schedule, for end-user understanding, typically inserted in audit events.- Specified by:
getDescriptionin classJobSchedule- Returns:
- a description of the schedule
-
hashCode
public int hashCode()- Specified by:
hashCodein classJobSchedule
-
equals
- Specified by:
equalsin classJobSchedule
-