Class AbstractHashMapPersister<K,V>
java.lang.Object
org.apache.activemq.artemis.core.journal.collections.AbstractHashMapPersister<K,V>
- All Implemented Interfaces:
org.apache.activemq.artemis.core.persistence.Persister<JournalHashMap.MapRecord<K,V>>
public abstract class AbstractHashMapPersister<K,V>
extends Object
implements org.apache.activemq.artemis.core.persistence.Persister<JournalHashMap.MapRecord<K,V>>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal JournalHashMap.MapRecord<K, V> decode(org.apache.activemq.artemis.api.core.ActiveMQBuffer buffer, JournalHashMap.MapRecord<K, V> record, org.apache.activemq.artemis.core.persistence.CoreMessageObjectPools pool) protected abstract KdecodeKey(org.apache.activemq.artemis.api.core.ActiveMQBuffer buffer) protected abstract VdecodeValue(org.apache.activemq.artemis.api.core.ActiveMQBuffer buffer, K key) final voidencode(org.apache.activemq.artemis.api.core.ActiveMQBuffer buffer, JournalHashMap.MapRecord<K, V> record) protected abstract voidprotected abstract voidencodeValue(org.apache.activemq.artemis.api.core.ActiveMQBuffer buffer, V value) final intgetEncodeSize(JournalHashMap.MapRecord<K, V> record) bytegetID()protected abstract intgetKeySize(K key) protected abstract intgetValueSize(V value)
-
Constructor Details
-
AbstractHashMapPersister
public AbstractHashMapPersister()
-
-
Method Details
-
getID
public byte getID()- Specified by:
getIDin interfaceorg.apache.activemq.artemis.core.persistence.Persister<K>
-
getEncodeSize
- Specified by:
getEncodeSizein interfaceorg.apache.activemq.artemis.core.persistence.Persister<K>
-
getKeySize
-
encodeKey
protected abstract void encodeKey(org.apache.activemq.artemis.api.core.ActiveMQBuffer buffer, K key) -
decodeKey
-
getValueSize
-
encodeValue
protected abstract void encodeValue(org.apache.activemq.artemis.api.core.ActiveMQBuffer buffer, V value) -
decodeValue
-
encode
public final void encode(org.apache.activemq.artemis.api.core.ActiveMQBuffer buffer, JournalHashMap.MapRecord<K, V> record) - Specified by:
encodein interfaceorg.apache.activemq.artemis.core.persistence.Persister<K>
-
decode
public final JournalHashMap.MapRecord<K,V> decode(org.apache.activemq.artemis.api.core.ActiveMQBuffer buffer, JournalHashMap.MapRecord<K, V> record, org.apache.activemq.artemis.core.persistence.CoreMessageObjectPools pool) - Specified by:
decodein interfaceorg.apache.activemq.artemis.core.persistence.Persister<K>
-