Class Job

    • Constructor Detail

      • 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 Detail

      • 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