Class AMQPMessagePersisterV3
- java.lang.Object
-
- org.apache.activemq.artemis.spi.core.protocol.MessagePersister
-
- org.apache.activemq.artemis.protocol.amqp.broker.AMQPMessagePersister
-
- org.apache.activemq.artemis.protocol.amqp.broker.AMQPMessagePersisterV2
-
- org.apache.activemq.artemis.protocol.amqp.broker.AMQPMessagePersisterV3
-
- All Implemented Interfaces:
org.apache.activemq.artemis.core.persistence.Persister<org.apache.activemq.artemis.api.core.Message>
public class AMQPMessagePersisterV3 extends AMQPMessagePersisterV2
-
-
Field Summary
Fields Modifier and Type Field Description static byteIDstatic AMQPMessagePersisterV3theInstance
-
Constructor Summary
Constructors Constructor Description AMQPMessagePersisterV3()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.activemq.artemis.api.core.Messagedecode(org.apache.activemq.artemis.api.core.ActiveMQBuffer buffer, org.apache.activemq.artemis.api.core.Message ignore, org.apache.activemq.artemis.core.persistence.CoreMessageObjectPools pool)voidencode(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-idintgetEncodeSize(org.apache.activemq.artemis.api.core.Message record)bytegetID()static AMQPMessagePersisterV3getInstance()
-
-
-
Field Detail
-
ID
public static final byte ID
- See Also:
- Constant Field Values
-
theInstance
public static AMQPMessagePersisterV3 theInstance
-
-
Method Detail
-
getInstance
public static AMQPMessagePersisterV3 getInstance()
-
getID
public byte getID()
- Specified by:
getIDin interfaceorg.apache.activemq.artemis.core.persistence.Persister<org.apache.activemq.artemis.api.core.Message>- Overrides:
getIDin classAMQPMessagePersisterV2
-
getEncodeSize
public int getEncodeSize(org.apache.activemq.artemis.api.core.Message record)
- Specified by:
getEncodeSizein interfaceorg.apache.activemq.artemis.core.persistence.Persister<org.apache.activemq.artemis.api.core.Message>- Overrides:
getEncodeSizein classAMQPMessagePersisterV2
-
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:
encodein interfaceorg.apache.activemq.artemis.core.persistence.Persister<org.apache.activemq.artemis.api.core.Message>- Overrides:
encodein classAMQPMessagePersisterV2
-
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 ignore, org.apache.activemq.artemis.core.persistence.CoreMessageObjectPools pool)- Specified by:
decodein interfaceorg.apache.activemq.artemis.core.persistence.Persister<org.apache.activemq.artemis.api.core.Message>- Overrides:
decodein classAMQPMessagePersisterV2
-
-