Package org.apache.qpid.server.queue
Class LastValueQueueList
- java.lang.Object
-
- org.apache.qpid.server.queue.OrderedQueueEntryList
-
- org.apache.qpid.server.queue.LastValueQueueList
-
public class LastValueQueueList extends OrderedQueueEntryList
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.qpid.server.queue.OrderedQueueEntryList
OrderedQueueEntryList.HeadCreator, OrderedQueueEntryList.QueueEntryIteratorImpl
-
-
Constructor Summary
Constructors Constructor Description LastValueQueueList(LastValueQueue<?> queue, org.apache.qpid.server.queue.QueueStatistics queueStatistics)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.qpid.server.queue.LastValueQueueList.ConflationQueueEntry
add(ServerMessage message, MessageEnqueueRecord enqueueRecord)
Updates the list using super.add and also updates_latestValuesMap
and discards entries as necessary.protected org.apache.qpid.server.queue.LastValueQueueList.ConflationQueueEntry
createQueueEntry(ServerMessage message, MessageEnqueueRecord enqueueRecord)
QueueEntry
getLeastSignificantOldestEntry()
void
updateStatsOnStateChange(QueueEntry entry, MessageInstance.EntryState fromState, MessageInstance.EntryState toState)
-
Methods inherited from class org.apache.qpid.server.queue.OrderedQueueEntryList
entryDeleted, getHead, getOldestEntry, getPriorities, getQueue, getTail, iterator, next
-
-
-
-
Constructor Detail
-
LastValueQueueList
public LastValueQueueList(LastValueQueue<?> queue, org.apache.qpid.server.queue.QueueStatistics queueStatistics)
-
-
Method Detail
-
createQueueEntry
protected org.apache.qpid.server.queue.LastValueQueueList.ConflationQueueEntry createQueueEntry(ServerMessage message, MessageEnqueueRecord enqueueRecord)
- Specified by:
createQueueEntry
in classOrderedQueueEntryList
-
add
public org.apache.qpid.server.queue.LastValueQueueList.ConflationQueueEntry add(ServerMessage message, MessageEnqueueRecord enqueueRecord)
Updates the list using super.add and also updates_latestValuesMap
and discards entries as necessary.- Overrides:
add
in classOrderedQueueEntryList
-
getLeastSignificantOldestEntry
public QueueEntry getLeastSignificantOldestEntry()
-
updateStatsOnStateChange
public void updateStatsOnStateChange(QueueEntry entry, MessageInstance.EntryState fromState, MessageInstance.EntryState toState)
-
-