Interface TimerPersistence.TimerChangeListener
-
- Enclosing interface:
- TimerPersistence
public static interface TimerPersistence.TimerChangeListenerListener that gets invoked when a new timer is added to the underlying store.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TimerServiceImplgetTimerService()Gets 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 storevoidtimerSync(TimerImpl oldTimer, TimerImpl newTimer)Invoked when a timer needs to be sync with the underlying store
-
-
-
Method Detail
-
timerAdded
void timerAdded(TimerImpl timer)
Invoked when a timer is added to the underlying store.- Parameters:
timer- The timer
-
timerSync
void timerSync(TimerImpl oldTimer, TimerImpl newTimer)
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
void timerRemoved(String timerId)
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
-
-