Class 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 Detail

      • getID

        public byte getID()
        Specified by:
        getID in interface org.apache.activemq.artemis.core.persistence.Persister<EncodingSupport>
      • getEncodeSize

        public int getEncodeSize​(EncodingSupport record)
        Specified by:
        getEncodeSize in interface org.apache.activemq.artemis.core.persistence.Persister<EncodingSupport>
      • encode

        public void encode​(org.apache.activemq.artemis.api.core.ActiveMQBuffer buffer,
                           EncodingSupport record)
        Specified by:
        encode in interface org.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:
        decode in interface org.apache.activemq.artemis.core.persistence.Persister<EncodingSupport>