Class TimeScheduler3.RecurringTask

  • All Implemented Interfaces:
    java.lang.Comparable<java.util.concurrent.Delayed>, java.lang.Runnable, java.util.concurrent.Delayed, java.util.concurrent.Future
    Enclosing class:
    TimeScheduler3

    protected class TimeScheduler3.RecurringTask
    extends TimeScheduler3.Task
    Tasks which runs more than once, either dynamic, fixed-rate or fixed-delay, until cancelled
    • Field Detail

      • period

        protected final long period
      • initial_delay

        protected final long initial_delay
      • cnt

        protected int cnt
    • Constructor Detail

      • RecurringTask

        public RecurringTask​(java.lang.Runnable runnable,
                             TimeScheduler3.TaskType type,
                             long initial_delay,
                             long delay,
                             java.util.concurrent.TimeUnit unit,
                             boolean can_block)
    • Method Detail

      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable
        Overrides:
        run in class TimeScheduler3.Task