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 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 Details

    • getID

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

      public static EncoderPersister getInstance()
    • getEncodeSize

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

      public void encode(ActiveMQBuffer buffer, EncodingSupport record)
      Specified by:
      encode in interface org.apache.activemq.artemis.core.persistence.Persister<EncodingSupport>
    • decode

      public EncodingSupport decode(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>