|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.web_visage.ichat.IncomingMessageQueue
public class IncomingMessageQueue
Message queue.
Allows adding/removing iChat messages into the queue.
Requires external synchonisation.
Constructor Summary | |
---|---|
IncomingMessageQueue()
Constructor. |
Method Summary | |
---|---|
void |
add(IChatMessage aMessage)
Adds a message to the queue. |
void |
clear()
Clears the queue. |
boolean |
hasNext()
Checks whether the queue has next element. |
IChatMessage |
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 IncomingMessageQueue()
Method Detail |
---|
public void add(IChatMessage aMessage)
aMessage
- -
iChat messagepublic IChatMessage 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 |