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
-
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.void
Internal use.long
getStoreTime
(int index) Internal use.void
reload()
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.int
size()
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:Memory
Internal use. -
add
Description copied from class:Memory
Add a Message to the Memory. -
remove
Description copied from class:Memory
Removes the Message at the index. -
removeOlderThan
Description copied from class:Memory
Removes all Messages with a store time older than time.- Specified by:
removeOlderThan
in classMemory
- Parameters:
time
- Time- Returns:
- Memory
- Throws:
Exception
-
removeOlderThan
Description copied from class:Memory
Internal use.- Specified by:
removeOlderThan
in classMemory
- Throws:
Exception
-
at
Description copied from class:Memory
Returns the Message at the index. -
getStoreTime
public long getStoreTime(int index) Description copied from class:Memory
Internal use.- Specified by:
getStoreTime
in classMemory
-
size
Description copied from class:Memory
Returns the number of Messages stored in this Memory. -
clear
Description copied from class:Memory
Removes all Messages from this Memory. -
deferredClose
public void deferredClose()Description copied from class:Memory
Internal use.- Overrides:
deferredClose
in classMemory
-
select
Description copied from class:Memory
Applies 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:Memory
Removes all Messages from this Memory that matches the JMS message selector and returns this Memory. -
toString
-