Class CoreMessageWrapper

    • Field Detail

      • message

        protected final org.apache.activemq.artemis.api.core.ICoreMessage message
    • Constructor Detail

      • CoreMessageWrapper

        public CoreMessageWrapper​(org.apache.activemq.artemis.api.core.ICoreMessage message)
    • Method Detail

      • wrap

        public static CoreMessageWrapper wrap​(org.apache.activemq.artemis.api.core.ICoreMessage wrapped)
      • getOrignalEncoding

        protected short getOrignalEncoding()
      • createAMQPSection

        public org.apache.qpid.proton.amqp.messaging.Section createAMQPSection​(java.util.Map<org.apache.qpid.proton.amqp.Symbol,​java.lang.Object> maMap,
                                                                               org.apache.qpid.proton.amqp.messaging.Properties properties)
                                                                        throws ConversionException
        Throws:
        ConversionException
      • getInnerMessage

        public org.apache.activemq.artemis.api.core.ICoreMessage getInnerMessage()
      • getReadBodyBuffer

        protected org.apache.activemq.artemis.api.core.ActiveMQBuffer getReadBodyBuffer()
        When reading we use a protected copy so multi-threads can work fine
      • getWriteBodyBuffer

        protected org.apache.activemq.artemis.api.core.ActiveMQBuffer getWriteBodyBuffer()
        When writing on the conversion we use the buffer directly
      • getJMSMessageID

        public final java.lang.String getJMSMessageID()
      • setJMSMessageID

        public final void setJMSMessageID​(java.lang.String id)
      • 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

        public final java.lang.String getJMSCorrelationID()
      • setJMSCorrelationID

        public final void setJMSCorrelationID​(java.lang.String correlationID)
      • getJMSReplyTo

        public final org.apache.activemq.artemis.api.core.SimpleString getJMSReplyTo()
      • setJMSReplyTo

        public final void setJMSReplyTo​(java.lang.String replyTo)
      • getDestination

        public org.apache.activemq.artemis.api.core.SimpleString getDestination()
      • setDestination

        public final void setDestination​(java.lang.String destination)
      • getJMSDeliveryMode

        public final int getJMSDeliveryMode()
      • getJMSType

        public final java.lang.String getJMSType()
      • setJMSType

        public final void setJMSType​(java.lang.String type)
      • 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

        public final boolean propertyExists​(java.lang.String name)
      • getBooleanProperty

        public final boolean getBooleanProperty​(java.lang.String name)
      • getByteProperty

        public final byte getByteProperty​(java.lang.String name)
      • getShortProperty

        public final short getShortProperty​(java.lang.String name)
      • getIntProperty

        public final int getIntProperty​(java.lang.String name)
      • getLongProperty

        public final long getLongProperty​(java.lang.String name)
      • getFloatProperty

        public final float getFloatProperty​(java.lang.String name)
      • getDoubleProperty

        public final double getDoubleProperty​(java.lang.String name)
      • getStringProperty

        public final java.lang.String getStringProperty​(java.lang.String name)
      • getObjectProperty

        public final java.lang.Object getObjectProperty​(java.lang.String name)
      • getPropertyNames

        public final java.util.Enumeration getPropertyNames()
      • setBooleanProperty

        public final void setBooleanProperty​(java.lang.String name,
                                             boolean value)
      • setByteProperty

        public final void setByteProperty​(java.lang.String name,
                                          byte value)
      • setShortProperty

        public final void setShortProperty​(java.lang.String name,
                                           short value)
      • setIntProperty

        public final void setIntProperty​(java.lang.String name,
                                         int value)
      • setLongProperty

        public final void setLongProperty​(java.lang.String name,
                                          long value)
      • setFloatProperty

        public final void setFloatProperty​(java.lang.String name,
                                           float value)
      • setDoubleProperty

        public final void setDoubleProperty​(java.lang.String name,
                                            double value)
      • setStringProperty

        public final void setStringProperty​(java.lang.String name,
                                            java.lang.String value)
      • setObjectProperty

        public final void setObjectProperty​(java.lang.String name,
                                            java.lang.Object value)
      • clearBody

        public void clearBody()
      • encode

        public void encode()
        Encode the body into the internal message
      • decode

        public void decode()