Class IgniteScheduleProcessorAdapter

    • Constructor Detail

      • IgniteScheduleProcessorAdapter

        protected IgniteScheduleProcessorAdapter​(GridKernalContext ctx)
        Parameters:
        ctx - Kernal context.
    • Method Detail

      • schedule

        public abstract SchedulerFuture<?> schedule​(Runnable c,
                                                    String pattern)
        Parameters:
        c - Closure to schedule to run as a background cron-based job.
        pattern - Scheduling pattern in UNIX cron format with prefix "{n1, n2} " where n1 is delay of scheduling and n2 is the number of task calls.
        Returns:
        Descriptor of the scheduled execution.
      • schedule

        public abstract <R> SchedulerFuture<R> schedule​(Callable<R> c,
                                                        String pattern)
        Parameters:
        c - Closure to schedule to run as a background cron-based job.
        pattern - Scheduling pattern in UNIX cron format with prefix "{n1, n2} " where n1 is delay of scheduling and n2 is the number of task calls.
        Returns:
        Descriptor of the scheduled execution.