|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opends.server.replication.server.MsgQueue
public class MsgQueue
This class is used to build ordered lists of UpdateMessage. The order is defined by the order of the ChangeNumber of the UpdateMessage.
Constructor Summary | |
---|---|
MsgQueue()
|
Method Summary | |
---|---|
void |
add(UpdateMessage update)
Add an UpdateMessage to this MessageQueue. |
void |
clear()
Removes all UpdateMessage form this queue. |
boolean |
contains(UpdateMessage msg)
Returns true if this map contains an UpdateMessage with the same ChangeNumber as the given UpdateMessage. |
UpdateMessage |
first()
Return the first UpdateMessage in the MsgQueue. |
boolean |
isEmpty()
Returns true if this MsgQueue contains no UpdateMessage. |
UpdateMessage |
last()
Return the last UpdateMessage in the MsgQueue. |
UpdateMessage |
removeFirst()
Get and remove the first UpdateMessage in this MessageQueue. |
int |
size()
Returns the number of elements in this MsgQueue. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MsgQueue()
Method Detail |
---|
public UpdateMessage first()
public UpdateMessage last()
public int size()
public boolean isEmpty()
public void add(UpdateMessage update)
update
- The UpdateMessage to add to this MessageQueue.public UpdateMessage removeFirst()
public boolean contains(UpdateMessage msg)
msg
- UpdateMessage whose presence in this queue is to be tested.
public void clear()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |