public class QueueDispatchPendingList extends Object implements PendingList
| Constructor and Description |
|---|
QueueDispatchPendingList() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAll(PendingList pendingList)
Adds all the elements of the given PendingList to this PendingList.
|
void |
addForRedelivery(List<org.apache.activemq.broker.region.MessageReference> list,
boolean noConsumers) |
PendingNode |
addMessageFirst(org.apache.activemq.broker.region.MessageReference message)
Messages added are added directly to the pagedInPendingDispatch set of messages.
|
PendingNode |
addMessageLast(org.apache.activemq.broker.region.MessageReference message)
Messages added are added directly to the pagedInPendingDispatch set of messages.
|
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 |
hasRedeliveries() |
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.
|
void |
setPrioritizedMessages(boolean prioritizedMessages) |
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic QueueDispatchPendingList()
public boolean isEmpty()
PendingListisEmpty in interface PendingListpublic void clear()
PendingListclear in interface PendingListpublic PendingNode addMessageFirst(org.apache.activemq.broker.region.MessageReference message)
addMessageFirst in interface PendingListmessage - The MessageReference that is to be added to this list.public PendingNode addMessageLast(org.apache.activemq.broker.region.MessageReference message)
addMessageLast in interface PendingListmessage - The MessageReference that is to be added to this list.public PendingNode remove(org.apache.activemq.broker.region.MessageReference message)
PendingListremove in interface PendingListmessage - The MessageReference that is to be removed to this list.public int size()
PendingListsize in interface PendingListpublic long messageSize()
messageSize in interface PendingListpublic Iterator<org.apache.activemq.broker.region.MessageReference> iterator()
PendingListiterator in interface Iterable<org.apache.activemq.broker.region.MessageReference>iterator in interface PendingListpublic boolean contains(org.apache.activemq.broker.region.MessageReference message)
PendingListcontains in interface PendingListmessage - The Message that is the target of this query.public Collection<org.apache.activemq.broker.region.MessageReference> values()
PendingListvalues in interface PendingListpublic void addAll(PendingList pendingList)
PendingListaddAll in interface PendingListpendingList - The PendingList that is to be added to this collection.public org.apache.activemq.broker.region.MessageReference get(org.apache.activemq.command.MessageId messageId)
get in interface PendingListpublic void setPrioritizedMessages(boolean prioritizedMessages)
public boolean hasRedeliveries()
public void addForRedelivery(List<org.apache.activemq.broker.region.MessageReference> list, boolean noConsumers)
Copyright © 2005–2020 The Apache Software Foundation. All rights reserved.