|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.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 message
public IChatMessage next()
throws MessageQueueIsEmptyException
MessageQueueIsEmptyExceptionpublic boolean hasNext()
public int size()
public void clear()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||