Class QueueMemory
java.lang.Object
com.swiftmq.impl.streams.comp.memory.Memory
com.swiftmq.impl.streams.comp.memory.QueueMemory
- Direct Known Subclasses:
TempQueueMemory
Memory implementation that stores all Messages as persistent Messages in a regular Queue.
- Author:
- IIT Software GmbH, Muenster/Germany, (c) 2016, All Rights Reserved
-
Nested Class Summary
Nested classes/interfaces inherited from class Memory
Memory.Entry -
Method Summary
Modifier and TypeMethodDescriptionAdd a Message to the Memory.at(int index) Returns the Message at the index.clear()Removes all Messages from this Memory.voidInternal use.protected intprotected StringlonggetStoreTime(int index) Internal use.voidreload()Internal use.remove(int index) Removes the Message at the index.Removes all Messages from this Memory that matches the JMS message selector and returns this Memory.removeOlderThan(long time) Removes all Messages with a store time older than time.removeOlderThan(long time, boolean executeCallback) Internal use.Applies a JMS message selector to all Messages in this Memory and returns a new non-queue Memory with the result.shared()Marks the Queue that is used as backstore as shared by multiple QueueMemories.intsize()Returns the number of Messages stored in this Memory.toString()Methods inherited from class Memory
addLimit, addToIndexes, ascendingSeries, average, checkLimit, clearIndexes, close, collect, createIndex, descendingSeries, dropLateArrivals, first, forEach, getStoreTime, getStoreTimes, group, inactivityTimeout, index, isLate, isMarkedAsClose, join, join, last, limit, max, min, name, newKey, onRetire, orderBy, orderBy, removeFromIndexes, retirementCallback, reverse, sort, sum, values
-
Method Details
-
getQueueName
-
getDeliveryMode
protected int getDeliveryMode() -
reload
-
add
-
remove
-
removeOlderThan
-
getStoreTime
public long getStoreTime(int index) Description copied from class:MemoryInternal use.- Specified by:
getStoreTimein classMemory
-
removeOlderThan
-
at
-
size
-
clear
-
select
Description copied from class:MemoryApplies a JMS message selector to all Messages in this Memory and returns a new non-queue Memory with the result. -
remove
Description copied from class:MemoryRemoves all Messages from this Memory that matches the JMS message selector and returns this Memory. -
deferredClose
public void deferredClose()Description copied from class:MemoryInternal use.- Overrides:
deferredClosein classMemory
-
toString
-