Class CronTask

    • Constructor Detail

      • CronTask

        public CronTask​(Runnable runnable,
                        String expression)
        Create a new CronTask.
        Parameters:
        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.
        Parameters:
        runnable - the underlying task to execute
        cronTrigger - the cron trigger defining when the task should be executed