Interface Timer.TimerCallback

  • Enclosing interface:
    Timer

    public static interface Timer.TimerCallback
    An interface implemented by requester.
    • Method Detail

      • callback

        void callback()
        This is called when the timer expires of when the request was canceled. If the call back is for a scheduled delay, the call back can again call a schedule method. A request is canceled either because TimerNode.cancel() is called or because Timer.stop() is called and the TimerNode is scheduled.
      • timerStopped

        void timerStopped()
        The timer was stopped. This is called if a request is queued when Timer.stop is called.