java.lang.Object
com.sodius.oslc.server.core.jobs.Job

public abstract class Job extends Object
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:
  • Constructor Details

    • Job

      protected Job(String id)
      Creates a job instance with the given identifier.
      Parameters:
      id - the job identifier
      Throws:
      NullPointerException - if id is null or empty
  • Method Details

    • getId

      public final String getId()
      Returns the identifier of the job.
      Returns:
      the job identifier
    • getSchedule

      public final JobSchedule getSchedule()
      Returns the schedule that determines when the job must execute.
      Returns:
      the schedule
    • toString

      public String toString()
      Overrides:
      toString in class Object