Class ITimerController

java.lang.Object
org.zkoss.stateless.state.ITimerController

public class ITimerController extends 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 Details

    • 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.