Class AMQPMessagePersister

  • All Implemented Interfaces:
    org.apache.activemq.artemis.core.persistence.Persister<org.apache.activemq.artemis.api.core.Message>
    Direct Known Subclasses:
    AMQPMessagePersisterV2

    public class AMQPMessagePersister
    extends org.apache.activemq.artemis.spi.core.protocol.MessagePersister
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected AMQPMessagePersister()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apache.activemq.artemis.api.core.Message decode​(org.apache.activemq.artemis.api.core.ActiveMQBuffer buffer, org.apache.activemq.artemis.api.core.Message record, org.apache.activemq.artemis.core.persistence.CoreMessageObjectPools pool)  
      void encode​(org.apache.activemq.artemis.api.core.ActiveMQBuffer buffer, org.apache.activemq.artemis.api.core.Message record)
      Sub classes must add the first short as the protocol-id
      int getEncodeSize​(org.apache.activemq.artemis.api.core.Message record)  
      byte getID()  
      static AMQPMessagePersister getInstance()  
      • Methods inherited from class org.apache.activemq.artemis.spi.core.protocol.MessagePersister

        clearPersisters, decode, getPersister, registerPersister, registerProtocol
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AMQPMessagePersister

        protected AMQPMessagePersister()
    • Method Detail

      • getID

        public byte getID()
        Specified by:
        getID in interface org.apache.activemq.artemis.core.persistence.Persister<org.apache.activemq.artemis.api.core.Message>
        Overrides:
        getID in class org.apache.activemq.artemis.spi.core.protocol.MessagePersister
      • getEncodeSize

        public int getEncodeSize​(org.apache.activemq.artemis.api.core.Message record)
        Specified by:
        getEncodeSize in interface org.apache.activemq.artemis.core.persistence.Persister<org.apache.activemq.artemis.api.core.Message>
        Overrides:
        getEncodeSize in class org.apache.activemq.artemis.spi.core.protocol.MessagePersister
      • encode

        public void encode​(org.apache.activemq.artemis.api.core.ActiveMQBuffer buffer,
                           org.apache.activemq.artemis.api.core.Message record)
        Sub classes must add the first short as the protocol-id
        Specified by:
        encode in interface org.apache.activemq.artemis.core.persistence.Persister<org.apache.activemq.artemis.api.core.Message>
        Overrides:
        encode in class org.apache.activemq.artemis.spi.core.protocol.MessagePersister
      • decode

        public org.apache.activemq.artemis.api.core.Message decode​(org.apache.activemq.artemis.api.core.ActiveMQBuffer buffer,
                                                                   org.apache.activemq.artemis.api.core.Message record,
                                                                   org.apache.activemq.artemis.core.persistence.CoreMessageObjectPools pool)
        Specified by:
        decode in interface org.apache.activemq.artemis.core.persistence.Persister<org.apache.activemq.artemis.api.core.Message>
        Overrides:
        decode in class org.apache.activemq.artemis.spi.core.protocol.MessagePersister