Class QuartzScheduledJob

  • All Implemented Interfaces:
    ScheduledJob

    public class QuartzScheduledJob
    extends Object
    implements ScheduledJob
    This class represents a job that is scheduled in a Quartz scheduler. For each job to schedule by the Scheduler Engine, a corresponding QuartzScheduledJob instance is created with the trigger that is actually used by the Quartz scheduler to schedule the job. In Quartz, a trigger is always related to the scheduled job and a scheduled job can have one or more triggers in Quartz.

    A QuartzScheduledJob instance isn't serializable meaning it is lost at platform shutdown. Please, use the

    • Constructor Detail

      • QuartzScheduledJob

        protected QuartzScheduledJob​(org.quartz.Trigger trigger)
        Constructs a new job that is scheduled in a Quartz scheduler.
        Parameters:
        trigger - the Quartz trigger related to the scheduled job in the Quartz scheduler.
    • Method Detail

      • getName

        public String getName()
        Description copied from interface: ScheduledJob
        Gets the name under which the job is registered into the scheduler.
        Specified by:
        getName in interface ScheduledJob
        Returns:
        the name of the job.
      • getNextExecutionTime

        public Date getNextExecutionTime()
        Description copied from interface: ScheduledJob
        Gets the next time at which the execution of this job will be fired. The next execution time depends upon the trigger with which it is registered in the scheduler.
        Specified by:
        getNextExecutionTime in interface ScheduledJob
        Returns:
        the next time at which this job should be executed.