|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpeer2me.message.LinkedMessageList
public class LinkedMessageList
This class is a dynamically linked list that is used by the framework to store
messages that are ready to be sent. The list is processed by the
MessageQueueProcessor
class.
MessageQueueProcessor
,
Message
Constructor Summary | |
---|---|
LinkedMessageList()
Default constructor. |
Method Summary | |
---|---|
Message |
getFirstMessage()
Returns the Message which is contained in the first element in the list. |
int |
getNumberOfMessagesInList()
Returns the number of messages in the list |
void |
insert(Message message)
Inserts a MessageListObject at the beginning of the list |
void |
insertLast(Message message)
Inserts a MessageListObject at the end of the list |
boolean |
isEmpty()
Checks to see if the list is empty |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LinkedMessageList()
Method Detail |
---|
public boolean isEmpty()
public void insert(Message message)
MessageListObject
at the beginning of the list
message
- The message to be wrapped in the MessageListObjectpublic void insertLast(Message message)
MessageListObject
at the end of the list
message
- The message to be wrapped in the MessageListObjectpublic Message getFirstMessage()
Message
which is contained in the first element in the list. It the removes
the element from the list and sets the next element as the first element
public int getNumberOfMessagesInList()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |