Class HeapMemory
java.lang.Object
com.swiftmq.impl.streams.comp.memory.Memory
com.swiftmq.impl.streams.comp.memory.HeapMemory
Memory implementation that stores all Messages on the heap.
- Author:
- IIT Software GmbH, Muenster/Germany, (c) 2016, All Rights Reserved
-
Nested Class Summary
Nested classes/interfaces inherited from class com.swiftmq.impl.streams.comp.memory.Memory
Memory.Entry -
Constructor Summary
Constructors -
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.longgetStoreTime(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.intsize()Returns the number of Messages stored in this Memory.toString()Methods inherited from class com.swiftmq.impl.streams.comp.memory.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
-
Constructor Details
-
HeapMemory
-
-
Method Details
-
reload
Description copied from class:MemoryInternal use. -
add
Description copied from class:MemoryAdd a Message to the Memory. -
remove
Description copied from class:MemoryRemoves the Message at the index. -
removeOlderThan
Description copied from class:MemoryRemoves all Messages with a store time older than time.- Specified by:
removeOlderThanin classMemory- Parameters:
time- Time- Returns:
- Memory
- Throws:
Exception
-
removeOlderThan
Description copied from class:MemoryInternal use.- Specified by:
removeOlderThanin classMemory- Throws:
Exception
-
at
Description copied from class:MemoryReturns the Message at the index. -
getStoreTime
public long getStoreTime(int index) Description copied from class:MemoryInternal use.- Specified by:
getStoreTimein classMemory
-
size
Description copied from class:MemoryReturns the number of Messages stored in this Memory. -
clear
Description copied from class:MemoryRemoves all Messages from this Memory. -
deferredClose
public void deferredClose()Description copied from class:MemoryInternal use.- Overrides:
deferredClosein classMemory
-
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. -
toString
-