Class TimerEvent
java.lang.Object
com.oorian.messaging.events.server.TimerEvent
Event fired by an
OorianTimer on each tick.
TimerEvent carries the timer that fired and the cumulative tick count, allowing listeners to identify the source timer and track how many times it has fired.
This event is not part of the element event hierarchy — it is dispatched directly
to the registered TimerListener by the timer's executor thread.
- Since:
- 2.1
- Version:
- 1.0
- Author:
- Marvin P. Warble Jr.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the cumulative number of times the timer has fired.getTimer()Returns the timer that fired this event.
-
Constructor Details
-
TimerEvent
Creates a new TimerEvent.- Parameters:
timer- the timer that fired this eventtickCount- the number of times the timer has fired
-
-
Method Details
-
getTimer
Returns the timer that fired this event.- Returns:
- the source timer
-
getTickCount
public int getTickCount()Returns the cumulative number of times the timer has fired.- Returns:
- the tick count
-