Class ITimerController


  • public class ITimerController
    extends java.lang.Object
    An ITimer controller to control start, stop, and some status with the given timer instance.

    Note: this class is not thread-safe, so when it's used in multi-threading environment, the developer should handle the threading issue.

    Author:
    katherine
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ITimer build()
      Returns the immutable timer instance that the controller to build with.
      static ITimerController of​(ITimer owner)
      Returns the controller instance with the given timer
      void start()
      Starts the timer.
      void stop()
      Stops the timer.
      • Methods inherited from class java.lang.Object

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

      • start

        public void start()
        Starts the timer.
      • stop

        public void stop()
        Stops the timer.
      • of

        public static ITimerController of​(ITimer owner)
        Returns the controller instance with the given timer
        Parameters:
        owner - The controller to control with
      • build

        public ITimer build()
        Returns the immutable timer instance that the controller to build with.