Interface TimerCallback


public interface TimerCallback

This interface represents a function prototype for timer events.

Custom timer callback functions are given with schedule(long, TimerCallback) and schedule(long, long, TimerCallback)

If a timer callback is not specified the default Script.timerEvent(Timer) is called.

See Also:
schedule(long, TimerCallback), schedule(long, long, TimerCallback), Callbacks

Method Summary
 void timerEvent(Timer timer)
          Called then scheduled timer is executed.
 

Method Detail

timerEvent

void timerEvent(Timer timer)
Called then scheduled timer is executed.

Parameters:
timer - Scheduled timer object
See Also:
schedule(long), schedule(long,long), Timer, Timer.cancel()