Interface TimerPersistence.TimerChangeListener
- Enclosing interface:
- TimerPersistence
public static interface TimerPersistence.TimerChangeListener
Listener that gets invoked when a new timer is added to the underlying store.
-
Method Summary
Modifier and TypeMethodDescriptionGets the timer service associated with this listenervoidtimerAdded(TimerImpl timer) Invoked when a timer is added to the underlying store.voidtimerRemoved(String timerId) Invoked when a timer is removed from the underlying storevoidInvoked when a timer needs to be sync with the underlying store
-
Method Details
-
timerAdded
Invoked when a timer is added to the underlying store.- Parameters:
timer- The timer
-
timerSync
Invoked when a timer needs to be sync with the underlying store- Parameters:
oldTimer- The timer in Server memorynewtimer- The timer coming from the store
-
timerRemoved
Invoked when a timer is removed from the underlying store- Parameters:
timerId- The timer
-
getTimerService
TimerServiceImpl getTimerService()Gets the timer service associated with this listener- Returns:
- The timer service
-