Package com.sodius.oslc.server.core.jobs
Class JobSchedule.FixedRateSchedule
- java.lang.Object
-
- com.sodius.oslc.server.core.jobs.JobSchedule
-
- com.sodius.oslc.server.core.jobs.JobSchedule.FixedRateSchedule
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- JobSchedule
public static final class JobSchedule.FixedRateSchedule extends JobSchedule
Provides information for a job to schedule at a fixed rate.- Since:
- 3.11.0
- See Also:
JobSchedule.atFixedRate(int, int)
, 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)
String
getDescription(List<Locale> locales)
Returns a description of the schedule, for end-user understanding, typically inserted in audit events.int
getHour()
Returns the hour (0 to 23) at which the job must run.int
getMinute()
Returns the minute (0 to 59) at which the job must run.JobSchedule.Type
getType()
ReturnsJobSchedule.Type.FIXED_RATE
.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_RATE
.- Specified by:
getType
in classJobSchedule
- Returns:
- the type of scheduling.
-
getHour
public int getHour()
Returns the hour (0 to 23) at which the job must run.- Returns:
- the hour value
-
getMinute
public int getMinute()
Returns the minute (0 to 59) at which the job must run.- Returns:
- the minute value
-
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
-
-