Class CronTask


public class CronTask extends TriggerTask
TriggerTask implementation defining a Runnable to be executed according to a standard cron expression.
Since:
3.2
Author:
Chris Beams
See Also:
  • Constructor Details

    • CronTask

      public CronTask(Runnable runnable, 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(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 Details

    • getExpression

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