org.springframework.scheduling.config

Class CronTask

    • Constructor Summary

      Constructors 
      Constructor and Description
      CronTask(java.lang.Runnable runnable, CronTrigger cronTrigger)
      Create a new CronTask.
      CronTask(java.lang.Runnable runnable, java.lang.String expression)
      Create a new CronTask.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.String getExpression()
      Return the cron expression defining when the task should be executed.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • CronTask

        public CronTask(java.lang.Runnable runnable,
                        java.lang.String expression)
        Create a new CronTask.
        Parameters:
        runnable - the underlying task to execute
        expression - the cron expression defining when the task should be executed
      • CronTask

        public CronTask(java.lang.Runnable runnable,
                        CronTrigger cronTrigger)
        Create a new CronTask.
        Parameters:
        runnable - the underlying task to execute
        cronTrigger - the cron trigger defining when the task should be executed
    • Method Detail

      • getExpression

        public java.lang.String getExpression()
        Return the cron expression defining when the task should be executed.