类 CronTask

    • 构造器详细资料

      • CronTask

        public CronTask​(Runnable runnable,
                        String expression)
        Create a new CronTask.
        参数:
        runnable - the underlying task to execute
        expression - 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