Interface TimerListener


public interface TimerListener
Listener interface for receiving TimerEvent notifications from an OorianTimer.

Implement this interface and register with OorianTimer.registerListener(TimerListener) to receive callbacks on each timer tick.

Usage:


 public class DashboardPage extends HtmlPage implements TimerListener
 {
     @Override
     public void onTimer(TimerEvent event)
     {
         // Handle timer tick
         sendUpdate();
     }
 }
 
Since:
2.1
Version:
1.0
Author:
Marvin P. Warble Jr.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Called when the timer fires.
  • Method Details

    • onTimer

      void onTimer(TimerEvent event)
      Called when the timer fires.
      Parameters:
      event - the timer event containing tick context