Package org.zkoss.stateless.state
Class ITimerController
- java.lang.Object
-
- org.zkoss.stateless.state.ITimerController
-
public class ITimerController extends java.lang.Object
AnITimer
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 giventimer
void
start()
Starts the timer.void
stop()
Stops the timer.
-
-
-
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 giventimer
- Parameters:
owner
- The controller to control with
-
build
public ITimer build()
Returns the immutable timer instance that the controller to build with.
-
-