Class AMQPMessagePersisterV2
- 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
-
- All Implemented Interfaces:
org.apache.activemq.artemis.core.persistence.Persister<org.apache.activemq.artemis.api.core.Message>
- Direct Known Subclasses:
AMQPMessagePersisterV3
public class AMQPMessagePersisterV2 extends AMQPMessagePersister
-
-
Field Summary
Fields Modifier and Type Field Description static byteIDstatic AMQPMessagePersisterV2theInstance
-
Constructor Summary
Constructors Constructor Description AMQPMessagePersisterV2()
-
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 AMQPMessagePersisterV2getInstance()
-
-
-
Field Detail
-
ID
public static final byte ID
- See Also:
- Constant Field Values
-
theInstance
public static AMQPMessagePersisterV2 theInstance
-
-
Method Detail
-
getInstance
public static AMQPMessagePersisterV2 getInstance()
-
getID
public byte getID()
- Specified by:
getIDin interfaceorg.apache.activemq.artemis.core.persistence.Persister<org.apache.activemq.artemis.api.core.Message>- Overrides:
getIDin classAMQPMessagePersister
-
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 classAMQPMessagePersister
-
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 classAMQPMessagePersister
-
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 classAMQPMessagePersister
-
-