|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpeer2me.message.LinkedPingRecipientsList
public class LinkedPingRecipientsList
This class is a dynamically linked list that is used by the framework to store
pings that are ready to be sent. The list is processed by the
PingQueueProcessor
class. The list contains all the nodes
that should be pinged.
Node
,
PingQueueProcessor
Constructor Summary | |
---|---|
LinkedPingRecipientsList()
Default constructor. |
Method Summary | |
---|---|
Node |
getFirstNode()
Returns the Node which is contained in the first element in the list. |
int |
getNumberOfNodesInList()
Returns the number of nodes in the list |
void |
insert(Node node)
Inserts a Node at the beginning of the list |
void |
insertLast(Node node)
Inserts a PingRecipientObject 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 LinkedPingRecipientsList()
Method Detail |
---|
public boolean isEmpty()
public void insert(Node node)
Node
at the beginning of the list
node
- The node to be wrapped in the MessageListObjectpublic void insertLast(Node node)
PingRecipientObject
at the end of the list
node
- The node to be wrapped in the PingRecipientObjectpublic Node getFirstNode()
Node
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 getNumberOfNodesInList()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |