Class CoreMessageWrapper
java.lang.Object
org.apache.activemq.artemis.protocol.amqp.converter.coreWrapper.CoreMessageWrapper
- Direct Known Subclasses:
CoreBytesMessageWrapper, CoreMapMessageWrapper, CoreObjectMessageWrapper, CoreStreamMessageWrapper, CoreTextMessageWrapper
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfinal voidorg.apache.qpid.proton.amqp.messaging.SectioncreateAMQPSection(Map<org.apache.qpid.proton.amqp.Symbol, Object> maMap, org.apache.qpid.proton.amqp.messaging.Properties properties) voiddecode()voidencode()Encode the body into the internal messagefinal booleangetBooleanProperty(String name) final bytegetByteProperty(String name) final doublegetDoubleProperty(String name) final longfinal floatgetFloatProperty(String name) final intgetIntProperty(String name) final Stringfinal byte[]final intfinal Stringfinal intfinal SimpleStringfinal longfinal Stringfinal longgetLongProperty(String name) final ObjectgetObjectProperty(String name) protected shortfinal Enumerationprotected ActiveMQBufferWhen reading we use a protected copy so multi-threads can work finefinal shortgetShortProperty(String name) final StringgetStringProperty(String name) protected ActiveMQBufferWhen writing on the conversion we use the buffer directlyfinal booleanpropertyExists(String name) final voidsetBooleanProperty(String name, boolean value) final voidsetByteProperty(String name, byte value) final voidsetDeliveryMode(int deliveryMode) final voidsetDestination(String destination) final voidsetDoubleProperty(String name, double value) final voidsetFloatProperty(String name, float value) final voidsetIntProperty(String name, int value) final voidsetJMSCorrelationID(String correlationID) final voidsetJMSCorrelationIDAsBytes(byte[] correlationID) final voidsetJMSExpiration(long expiration) final voidfinal voidsetJMSPriority(int priority) final voidsetJMSReplyTo(String replyTo) final voidsetJMSTimestamp(long timestamp) final voidsetJMSType(String type) final voidsetLongProperty(String name, long value) final voidsetObjectProperty(String name, Object value) final voidsetShortProperty(String name, short value) final voidsetStringProperty(String name, String value) static CoreMessageWrapperwrap(ICoreMessage wrapped)
-
Field Details
-
message
-
-
Constructor Details
-
CoreMessageWrapper
-
-
Method Details
-
wrap
-
getOrignalEncoding
protected short getOrignalEncoding() -
createAMQPSection
public org.apache.qpid.proton.amqp.messaging.Section createAMQPSection(Map<org.apache.qpid.proton.amqp.Symbol, Object> maMap, org.apache.qpid.proton.amqp.messaging.Properties properties) throws ConversionException - Throws:
ConversionException
-
getInnerMessage
-
getReadBodyBuffer
When reading we use a protected copy so multi-threads can work fine -
getWriteBodyBuffer
When writing on the conversion we use the buffer directly -
getJMSMessageID
-
setJMSMessageID
-
getJMSTimestamp
public final long getJMSTimestamp() -
setJMSTimestamp
public final void setJMSTimestamp(long timestamp) -
getJMSCorrelationIDAsBytes
public final byte[] getJMSCorrelationIDAsBytes() -
setJMSCorrelationIDAsBytes
public final void setJMSCorrelationIDAsBytes(byte[] correlationID) -
getJMSCorrelationID
-
setJMSCorrelationID
-
getJMSReplyTo
-
setJMSReplyTo
-
getDestination
-
setDestination
-
getJMSDeliveryMode
public final int getJMSDeliveryMode() -
setDeliveryMode
- Throws:
ConversionException
-
getJMSType
-
setJMSType
-
getExpiration
public final long getExpiration() -
setJMSExpiration
public final void setJMSExpiration(long expiration) -
getJMSPriority
public final int getJMSPriority() -
setJMSPriority
public final void setJMSPriority(int priority) -
clearProperties
public final void clearProperties() -
propertyExists
-
getBooleanProperty
-
getByteProperty
-
getShortProperty
-
getIntProperty
-
getLongProperty
-
getFloatProperty
-
getDoubleProperty
-
getStringProperty
-
getObjectProperty
-
getPropertyNames
-
setBooleanProperty
-
setByteProperty
-
setShortProperty
-
setIntProperty
-
setLongProperty
-
setFloatProperty
-
setDoubleProperty
-
setStringProperty
-
setObjectProperty
-
clearBody
public void clearBody() -
encode
public void encode()Encode the body into the internal message -
decode
public void decode()
-