Class AMQPLargeMessagePersister
- java.lang.Object
-
- org.apache.activemq.artemis.spi.core.protocol.MessagePersister
-
- org.apache.activemq.artemis.protocol.amqp.broker.AMQPLargeMessagePersister
-
- All Implemented Interfaces:
org.apache.activemq.artemis.core.persistence.Persister<org.apache.activemq.artemis.api.core.Message>
public class AMQPLargeMessagePersister extends org.apache.activemq.artemis.spi.core.protocol.MessagePersister
-
-
Field Summary
Fields Modifier and Type Field Description static byteIDstatic AMQPLargeMessagePersistertheInstance
-
Constructor Summary
Constructors Constructor Description AMQPLargeMessagePersister()
-
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 record, org.apache.activemq.artemis.core.persistence.CoreMessageObjectPools pools)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 AMQPLargeMessagePersistergetInstance()
-
-
-
Field Detail
-
ID
public static final byte ID
- See Also:
- Constant Field Values
-
theInstance
public static AMQPLargeMessagePersister theInstance
-
-
Method Detail
-
getInstance
public static AMQPLargeMessagePersister getInstance()
-
getID
public byte getID()
- Specified by:
getIDin interfaceorg.apache.activemq.artemis.core.persistence.Persister<org.apache.activemq.artemis.api.core.Message>- Overrides:
getIDin classorg.apache.activemq.artemis.spi.core.protocol.MessagePersister
-
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 classorg.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:
encodein interfaceorg.apache.activemq.artemis.core.persistence.Persister<org.apache.activemq.artemis.api.core.Message>- Overrides:
encodein classorg.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 pools)- Specified by:
decodein interfaceorg.apache.activemq.artemis.core.persistence.Persister<org.apache.activemq.artemis.api.core.Message>- Overrides:
decodein classorg.apache.activemq.artemis.spi.core.protocol.MessagePersister
-
-