com.ihr.xbrl.util
Interface Timer.TimerTick

Enclosing class:
Timer

public static interface Timer.TimerTick

This is the interface that must be implemented by classes that will receive events at the intervals indicated by the Timer class when the timer is running.

Author:
Ignacio

Method Summary
 void exceptionInTimer(java.lang.Throwable e)
          This method will be called by the timer (Timer thread) if, during the execution of the timerTick method an exception is produced.
 void notifyStop()
          This method is called by the timer thread on a running TimerTick in order to inform the timer thread has been informed to stop.
 void timerEvent()
          This is the callback function that will be called from the same thread the timer is working.
 

Method Detail

timerEvent

void timerEvent()
This is the callback function that will be called from the same thread the timer is working.


exceptionInTimer

void exceptionInTimer(java.lang.Throwable e)
This method will be called by the timer (Timer thread) if, during the execution of the timerTick method an exception is produced.

Parameters:
e - the exception (Throwable) intercepted

notifyStop

void notifyStop()
This method is called by the timer thread on a running TimerTick in order to inform the timer thread has been informed to stop. It is up to the implementation class to decide how to use this notification



Copyright 2006-2009 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa