HooChat
Class cleanUpTask
java.lang.Object
|
+--java.util.TimerTask
|
+--HooChat.cleanUpTask
- All Implemented Interfaces:
- Runnable
- public class cleanUpTask
- extends TimerTask
This timer task periodically updates the server's list of clients,
removing those clients that have exited without formally logging off
|
Method Summary |
void |
run()
This method is over-riding the run method inherited from TimerTask
Basically, it just goes through the client checked in list and makes sure
that the client has checked in recently. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
cleanUpTask
public cleanUpTask(Hashtable ct,
Hashtable cm)
run
public void run()
- This method is over-riding the run method inherited from TimerTask
Basically, it just goes through the client checked in list and makes sure
that the client has checked in recently. If the client has not checked in,
it is removed from the client table (list of clients and their corresponding
call back objects--listeners)
- Specified by:
run in interface Runnable- Specified by:
run in class TimerTask
- Returns:
- void