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
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:
JobSchedule.withFixedDelay(long, long, TimeUnit)
, Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.sodius.oslc.server.core.jobs.JobSchedule
JobSchedule.FixedDelaySchedule, JobSchedule.FixedRateSchedule, JobSchedule.Type
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
long
getDelay()
Returns the delay between the termination of one execution and the commencement of the next.String
getDescription(List<Locale> locales)
Returns a description of the schedule, for end-user understanding, typically inserted in audit events.long
getInitialDelay()
Returns the initial delay before running the job, 0 if the job must run immediately.JobSchedule.Type
getType()
ReturnsJobSchedule.Type.FIXED_DELAY
.TimeUnit
getUnit()
Return the unit of time for the two delay values.int
hashCode()
-
Methods inherited from class com.sodius.oslc.server.core.jobs.JobSchedule
atFixedRate, disabled, toString, withFixedDelay
-
-
-
-
Method Detail
-
getType
public JobSchedule.Type getType()
ReturnsJobSchedule.Type.FIXED_DELAY
.- Specified by:
getType
in 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
public TimeUnit getUnit()
Return the unit of time for the two delay values.- Returns:
- the delay unit
-
getDescription
public String getDescription(List<Locale> locales)
Description copied from class:JobSchedule
Returns a description of the schedule, for end-user understanding, typically inserted in audit events.- Specified by:
getDescription
in classJobSchedule
- Parameters:
locales
- the locales to use, in decreasing order starting with the preferred locale- Returns:
- a description of the schedule
-
hashCode
public int hashCode()
- Specified by:
hashCode
in classJobSchedule
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in classJobSchedule
-
-