Class EmptyJob


  • public class EmptyJob
    extends Job
    Empty job. It does nothing and it is just a convienence way to schedule a job whereas the true job execution is performed in fact by a SchedulerEventListener object.
    Author:
    mmoquillon
    • Constructor Detail

      • EmptyJob

        public EmptyJob​(String name)
        Creates a new job with the specified name.
        Parameters:
        name - the name under which the job has to be registered in the scheduler.
    • Method Detail

      • execute

        public void execute​(JobExecutionContext context)
        Description copied from class: Job
        Executes the job with the specified execution context. The context carries the information that can be required by the job to fulfill its execution, like the job parameters.
        Specified by:
        execute in class Job
        Parameters:
        context - the context under which this job is executed.