Class RunnableJob

  • All Implemented Interfaces:
    org.quartz.Job

    public class RunnableJob
    extends java.lang.Object
    implements org.quartz.Job
    Represent a 'job' to be performed.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String KEY_RUNNABLE
      Key used to store Runnable in JobDataMap
    • Constructor Summary

      Constructors 
      Constructor Description
      RunnableJob()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void execute​(org.quartz.JobExecutionContext jobContext)
      Called by the Scheduler when a Trigger fires that is associated with the Job.
      private static java.lang.String toIso​(java.util.Date date)
      Convert Date to ISO-8601 String
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • execute

        public void execute​(org.quartz.JobExecutionContext jobContext)
                     throws org.quartz.JobExecutionException
        Called by the Scheduler when a Trigger fires that is associated with the Job.
        Specified by:
        execute in interface org.quartz.Job
        Throws:
        org.quartz.JobExecutionException
      • toIso

        private static java.lang.String toIso​(java.util.Date date)
        Convert Date to ISO-8601 String
        Parameters:
        date -
        Returns: