com.realtime.xmpp.util
Class TimeoutEvent.TimeoutDaemon

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--com.realtime.xmpp.util.TimeoutEvent.TimeoutDaemon
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
TimeoutEvent

protected class TimeoutEvent.TimeoutDaemon
extends java.lang.Thread

Daemon to wait for events and signal handlers.


Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
TimeoutEvent.TimeoutDaemon()
           
 
Method Summary
protected  long fireEvents()
          Fire all the events that have timed out.
 void run()
          Main fire event/wait loop.
 void wakeup()
          Force a check for timed out events.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TimeoutEvent.TimeoutDaemon

public TimeoutEvent.TimeoutDaemon()
Method Detail

wakeup

public void wakeup()

Force a check for timed out events.


run

public void run()

Main fire event/wait loop.

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

fireEvents

protected long fireEvents()

Fire all the events that have timed out. When there are no more events to process, the thread is signalled to stop by this method returning 0.

Returns:
The time in millis to wait until the next event. Returns zero when there is no more work.


Copyright © 2002,2003 Real Time Entertainment Group, LLC. All Rights Reserved.