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 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 memory
        newtimer - 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