Class TimerScheduler

    • Constructor Detail

      • TimerScheduler

        public TimerScheduler()
      • TimerScheduler

        public TimerScheduler​(java.lang.String name,
                              boolean daemon)
    • Method Detail

      • doStart

        protected void doStart()
                        throws java.lang.Exception
        Overrides:
        doStart in class AbstractLifeCycle
        Throws:
        java.lang.Exception
      • doStop

        protected void doStop()
                       throws java.lang.Exception
        Overrides:
        doStop in class AbstractLifeCycle
        Throws:
        java.lang.Exception
      • schedule

        public Scheduler.Task schedule​(java.lang.Runnable task,
                                       long delay,
                                       java.util.concurrent.TimeUnit units)
        Specified by:
        schedule in interface Scheduler
      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable