|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.web_visage.ichat.OutgoingMessagesQueue
public class OutgoingMessagesQueue
Outgoing messages queue.
Allows adding/removing iChat message-receiver pairs into the queue.
Requires external synchronization.
Constructor Summary | |
---|---|
OutgoingMessagesQueue()
Constructor. |
Method Summary | |
---|---|
void |
add(IChatMessageReceiverPair aMessage)
Adds a message to the queue. |
void |
clear()
Clears the queue. |
boolean |
hasNext()
Checks whether the queue has next element. |
IChatMessageReceiverPair |
next()
Returns next queue item and removes the last element from the queue. |
int |
size()
Returns the queue size. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OutgoingMessagesQueue()
Method Detail |
---|
public void add(IChatMessageReceiverPair aMessage)
aMessage
- -
iChat messagepublic IChatMessageReceiverPair next() throws MessageQueueIsEmptyException
MessageQueueIsEmptyException
public boolean hasNext()
public int size()
public void clear()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |