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 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 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
-
add
-
remove
-
removeOlderThan
-
removeOlderThan
-
at
-
getStoreTime
public long getStoreTime(int index) Description copied from class:MemoryInternal use.- Specified by:
getStoreTimein classMemory
-
size
-
clear
-
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
-