public class MessageRequestQueue
extends java.lang.Object
| Constructor and Description |
|---|
MessageRequestQueue() |
| Modifier and Type | Method and Description |
|---|---|
void |
addMessage(JabberMessage msg)
adds a message to send to the end of the queue
|
void |
clear()
clear all the messages in the queues
|
JabberMessage |
getMessageForReply(java.lang.String id)
checks if the there is an outstanding message waiting for a reply.
|
void |
shutdown()
wake up all the waiting threads possibly because someone is doing some shutdown work
|
void |
start()
resets all states back to the default
|
JabberMessage |
waitForMessage()
this will go into a wait state, waiting for any incoming messages.
|
public void addMessage(JabberMessage msg)
public JabberMessage waitForMessage()
public void shutdown()
public JabberMessage getMessageForReply(java.lang.String id)
id - the unique ID of the messagepublic void clear()
public void start()
Copyright © 2001-2005 Echomine. All Rights Reserved.