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

    Modifier and Type
    Method
    Description
    void
    This method will be executed immediately after all the timer threads are paused.
    void
    This method will be executed immediately after all the timer threads were resumed.
    void
    This method will be executed immediately after the timer starts and all threads are created and running.
    void
    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 Details

    • 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