类 CronTask


public class CronTask extends TriggerTask
TriggerTask implementation defining a Runnable to be executed according to a standard cron expression.
从以下版本开始:
4.0
作者:
Chris Beams
另请参阅:
  • 构造器详细资料

    • CronTask

      public CronTask(Runnable runnable, String expression)
      Create a new CronTask.
      参数:
      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.
      参数:
      runnable - the underlying task to execute
      cronTrigger - the cron trigger defining when the task should be executed
  • 方法详细资料

    • getExpression

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