Class TimerDelayRunner

  • All Implemented Interfaces:
    IDelayRunner

    public class TimerDelayRunner
    extends java.lang.Object
    implements IDelayRunner
    Timer based on Java java timer.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.Timer timer
      The java timer.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void cancel()
      Cancel the timer.
      java.lang.Runnable waitForDelay​(long delay, java.lang.Runnable step)
      Wait for a delay.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • timer

        protected java.util.Timer timer
        The java timer.
    • Constructor Detail

      • TimerDelayRunner

        public TimerDelayRunner()
    • Method Detail

      • waitForDelay

        public java.lang.Runnable waitForDelay​(long delay,
                                               java.lang.Runnable step)
        Wait for a delay.
        Specified by:
        waitForDelay in interface IDelayRunner
        Parameters:
        delay - The delay.
        step - The step.
      • cancel

        public void cancel()
        Cancel the timer.
        Specified by:
        cancel in interface IDelayRunner