public interface PendingList extends Iterable<org.apache.activemq.broker.region.MessageReference>
| Modifier and Type | Method and Description |
|---|---|
void |
addAll(PendingList pendingList)
Adds all the elements of the given PendingList to this PendingList.
|
PendingNode |
addMessageFirst(org.apache.activemq.broker.region.MessageReference message)
Adds the given message to the head of the list.
|
PendingNode |
addMessageLast(org.apache.activemq.broker.region.MessageReference message)
Adds the given message to the tail of the list.
|
void |
clear()
Discards all Messages currently held in the PendingList.
|
boolean |
contains(org.apache.activemq.broker.region.MessageReference message)
Query the PendingList to determine if the given message is contained within.
|
org.apache.activemq.broker.region.MessageReference |
get(org.apache.activemq.command.MessageId messageId) |
boolean |
isEmpty()
Returns true if there are no Messages in the PendingList currently.
|
Iterator<org.apache.activemq.broker.region.MessageReference> |
iterator()
Returns an iterator over the pending Messages.
|
long |
messageSize() |
PendingNode |
remove(org.apache.activemq.broker.region.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.
|
Collection<org.apache.activemq.broker.region.MessageReference> |
values()
Returns a new Collection that contains all the MessageReferences currently
held in this PendingList.
|
forEach, spliteratorboolean isEmpty()
void clear()
PendingNode addMessageFirst(org.apache.activemq.broker.region.MessageReference message)
message - The MessageReference that is to be added to this list.PendingNode addMessageLast(org.apache.activemq.broker.region.MessageReference message)
message - The MessageReference that is to be added to this list.PendingNode remove(org.apache.activemq.broker.region.MessageReference message)
message - The MessageReference that is to be removed to this list.int size()
long messageSize()
Iterator<org.apache.activemq.broker.region.MessageReference> iterator()
boolean contains(org.apache.activemq.broker.region.MessageReference message)
message - The Message that is the target of this query.Collection<org.apache.activemq.broker.region.MessageReference> values()
void addAll(PendingList pendingList)
pendingList - The PendingList that is to be added to this collection.org.apache.activemq.broker.region.MessageReference get(org.apache.activemq.command.MessageId messageId)
Copyright © 2005–2020 The Apache Software Foundation. All rights reserved.