|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.activemq.broker.region.cursors.OrderedPendingList
public class OrderedPendingList
Constructor Summary | |
---|---|
OrderedPendingList()
|
Method Summary | |
---|---|
void |
addAll(PendingList pendingList)
Adds all the elements of the given PendingList to this PendingList. |
PendingNode |
addMessageFirst(MessageReference message)
Adds the given message to the head of the list. |
PendingNode |
addMessageLast(MessageReference message)
Adds the given message to the tail of the list. |
void |
clear()
Discards all Messages currently held in the PendingList. |
boolean |
contains(MessageReference message)
Query the PendingList to determine if the given message is contained within. |
boolean |
isEmpty()
Returns true if there are no Messages in the PendingList currently. |
java.util.Iterator<MessageReference> |
iterator()
Returns an iterator over the pending Messages. |
PendingNode |
remove(MessageReference message)
Removes the given MessageReference from the PendingList if it is contained within. |
int |
size()
Returns the number of MessageReferences that are awaiting dispatch. |
java.lang.String |
toString()
|
java.util.Collection<MessageReference> |
values()
Returns a new Collection that contains all the MessageReferences currently held in this PendingList. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public OrderedPendingList()
Method Detail |
---|
public PendingNode addMessageFirst(MessageReference message)
PendingList
addMessageFirst
in interface PendingList
message
- The MessageReference that is to be added to this list.
public PendingNode addMessageLast(MessageReference message)
PendingList
addMessageLast
in interface PendingList
message
- The MessageReference that is to be added to this list.
public void clear()
PendingList
clear
in interface PendingList
public boolean isEmpty()
PendingList
isEmpty
in interface PendingList
public java.util.Iterator<MessageReference> iterator()
PendingList
iterator
in interface java.lang.Iterable<MessageReference>
iterator
in interface PendingList
public PendingNode remove(MessageReference message)
PendingList
remove
in interface PendingList
message
- The MessageReference that is to be removed to this list.
public int size()
PendingList
size
in interface PendingList
public java.lang.String toString()
toString
in class java.lang.Object
public boolean contains(MessageReference message)
PendingList
contains
in interface PendingList
message
- The Message that is the target of this query.
public java.util.Collection<MessageReference> values()
PendingList
values
in interface PendingList
public void addAll(PendingList pendingList)
PendingList
addAll
in interface PendingList
pendingList
- The PendingList that is to be added to this collection.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |