Class EncoderPersister
- java.lang.Object
-
- org.apache.activemq.artemis.core.journal.EncoderPersister
-
- All Implemented Interfaces:
org.apache.activemq.artemis.core.persistence.Persister<EncodingSupport>
public class EncoderPersister extends java.lang.Object implements org.apache.activemq.artemis.core.persistence.Persister<EncodingSupport>
This is a facade between the new Persister and the former EncodingSupport. Methods using the old interface will use this as a facade to provide the previous semantic.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description EncodingSupportdecode(org.apache.activemq.artemis.api.core.ActiveMQBuffer buffer, EncodingSupport record, org.apache.activemq.artemis.core.persistence.CoreMessageObjectPools pools)voidencode(org.apache.activemq.artemis.api.core.ActiveMQBuffer buffer, EncodingSupport record)intgetEncodeSize(EncodingSupport record)bytegetID()static EncoderPersistergetInstance()
-
-
-
Method Detail
-
getID
public byte getID()
- Specified by:
getIDin interfaceorg.apache.activemq.artemis.core.persistence.Persister<EncodingSupport>
-
getInstance
public static EncoderPersister getInstance()
-
getEncodeSize
public int getEncodeSize(EncodingSupport record)
- Specified by:
getEncodeSizein interfaceorg.apache.activemq.artemis.core.persistence.Persister<EncodingSupport>
-
encode
public void encode(org.apache.activemq.artemis.api.core.ActiveMQBuffer buffer, EncodingSupport record)- Specified by:
encodein interfaceorg.apache.activemq.artemis.core.persistence.Persister<EncodingSupport>
-
decode
public EncodingSupport decode(org.apache.activemq.artemis.api.core.ActiveMQBuffer buffer, EncodingSupport record, org.apache.activemq.artemis.core.persistence.CoreMessageObjectPools pools)
- Specified by:
decodein interfaceorg.apache.activemq.artemis.core.persistence.Persister<EncodingSupport>
-
-