Package com.sodius.oslc.server.core.jobs
Class Job
java.lang.Object
com.sodius.oslc.server.core.jobs.Job
A job to schedule and execute as a periodic background task.
Jobs can be scheduled either at a fixed rate
or with a fixed delay.
- Since:
- 3.11.0
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal StringgetId()Returns the identifier of the job.final JobScheduleReturns the schedule that determines when the job must execute.toString()
-
Constructor Details
-
Job
Creates a job instance with the given identifier.- Parameters:
id- the job identifier- Throws:
NullPointerException- if id is null or empty
-
-
Method Details