| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.realtime.xmpp.util.TimeoutEvent
Manage an event queue. Events are created by instantiating a TimeoutEvent object. A single thread monitors for timeouts and fires events through the Handler interface.
This class does not guarantee timeliness.
| Nested Class Summary | |
| static interface | TimeoutEvent.HandlerInterface the event handlers must implement. | 
| protected  class | TimeoutEvent.TimeoutDaemonDaemon to wait for events and signal handlers. | 
| Field Summary | |
| protected static TimeoutEvent.TimeoutDaemon | m_daemonOur single daemon. | 
| protected  TimeoutEvent.Handler | m_handlerThe handler to signal when the timeout occurs. | 
| protected  long | m_timeoutAbsolute system time of this timeout. | 
| protected static java.util.List | m_timeoutEventsThe list of timeout event objects in chronological order. | 
| Constructor Summary | |
| TimeoutEvent(long timeout,
             TimeoutEvent.Handler handler)Create a new timeout event and place it in the queue. | |
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
protected long m_timeout
protected TimeoutEvent.Handler m_handler
protected static TimeoutEvent.TimeoutDaemon m_daemon
protected static java.util.List m_timeoutEvents
| Constructor Detail | 
public TimeoutEvent(long timeout,
                    TimeoutEvent.Handler handler)
Create a new timeout event and place it in the queue.
* @param timeout the number of millis to wait before calling the handler.
handler - The handler to signal once the time has elapsed.| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||