Interface AbstractTimer.Action

  • Enclosing class:
    AbstractTimer<T extends AbstractCalculable>

    public static interface AbstractTimer.Action
    This interface contains all the methods that will be executed after starting, pausing, resuming and stopping a timer.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void pause()
      This method will be executed immediately after all the timer threads are paused.
      void resume()
      This method will be executed immediately after all the timer threads were resumed.
      void start()
      This method will be executed immediately after the timer starts and all threads are created and running.
      void stop()
      This method will be executed immediately after all the timer threads were stopped.
      Note: is the responsibility of the coder to call AbstractTimer.stop() at the end of the execution of the timer's instance
    • Method Detail

      • start

        void start()
        This method will be executed immediately after the timer starts and all threads are created and running.
      • pause

        void pause()
        This method will be executed immediately after all the timer threads are paused.
      • resume

        void resume()
        This method will be executed immediately after all the timer threads were resumed.
      • stop

        void stop()
        This method will be executed immediately after all the timer threads were stopped.
        Note: is the responsibility of the coder to call AbstractTimer.stop() at the end of the execution of the timer's instance