All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class RouterLayer.util.TimerThread

RouterLayer.util.TimerThread

public class TimerThread
Timer to be set to kill the live receiver thread. This utility will be convenient to set the time limit for the specific receiver thread such as RegistrarRecvThread If the time is over, the timer will kill the receiver thread automatically. This class can not be used for applets.


Variable Index

 o inTime
Check the current time is in time or over

Constructor Index

 o TimerThread(ReceiverThread, int)
Constructor

Method Index

 o run()
The timer will check the time for every minute.

Variables

 o inTime
 public boolean inTime
Check the current time is in time or over

Constructors

 o TimerThread
 public TimerThread(ReceiverThread t,
                    int waitingTimeinMinutes)
Constructor

Parameters:
t - ReceiverThread to be controlled by the timer
waitingTimeinMinutes - Time to be set. Unit is minutes.

Methods

 o run
 public void run()
The timer will check the time for every minute.


All Packages  Class Hierarchy  This Package  Previous  Next  Index