Class ActiveMQMessage

    • Constructor Detail

      • ActiveMQMessage

        public ActiveMQMessage()
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • acknowledge

        public void acknowledge()
                         throws javax.jms.JMSException
        Specified by:
        acknowledge in interface javax.jms.Message
        Throws:
        javax.jms.JMSException
      • clearBody

        public void clearBody()
                       throws javax.jms.JMSException
        Specified by:
        clearBody in interface javax.jms.Message
        Specified by:
        clearBody in class Message
        Throws:
        javax.jms.JMSException
      • getJMSMessageID

        public String getJMSMessageID()
        Specified by:
        getJMSMessageID in interface javax.jms.Message
      • setJMSMessageID

        public void setJMSMessageID​(String value)
                             throws javax.jms.JMSException
        Seems to be invalid because the parameter doesn't initialize MessageId instance variables ProducerId and ProducerSequenceId
        Specified by:
        setJMSMessageID in interface javax.jms.Message
        Parameters:
        value -
        Throws:
        javax.jms.JMSException
      • setJMSMessageID

        public void setJMSMessageID​(ProducerId producerId,
                                    long producerSequenceId)
                             throws javax.jms.JMSException
        This will create an object of MessageId. For it to be valid, the instance variable ProducerId and producerSequenceId must be initialized.
        Parameters:
        producerId -
        producerSequenceId -
        Throws:
        javax.jms.JMSException
      • getJMSTimestamp

        public long getJMSTimestamp()
        Specified by:
        getJMSTimestamp in interface javax.jms.Message
      • setJMSTimestamp

        public void setJMSTimestamp​(long timestamp)
        Specified by:
        setJMSTimestamp in interface javax.jms.Message
      • getJMSCorrelationID

        public String getJMSCorrelationID()
        Specified by:
        getJMSCorrelationID in interface javax.jms.Message
      • setJMSCorrelationID

        public void setJMSCorrelationID​(String correlationId)
        Specified by:
        setJMSCorrelationID in interface javax.jms.Message
      • getJMSCorrelationIDAsBytes

        public byte[] getJMSCorrelationIDAsBytes()
                                          throws javax.jms.JMSException
        Specified by:
        getJMSCorrelationIDAsBytes in interface javax.jms.Message
        Throws:
        javax.jms.JMSException
      • setJMSCorrelationIDAsBytes

        public void setJMSCorrelationIDAsBytes​(byte[] correlationId)
                                        throws javax.jms.JMSException
        Specified by:
        setJMSCorrelationIDAsBytes in interface javax.jms.Message
        Throws:
        javax.jms.JMSException
      • getJMSXMimeType

        public String getJMSXMimeType()
        Description copied from interface: Message
        Returns the MIME type of this mesage. This can be used in selectors to filter on the MIME types of the different JMS messages, or in the case of BlobMessage it allows you to create a selector on the MIME type of the BLOB body
        Specified by:
        getJMSXMimeType in interface Message
      • decodeString

        protected static String decodeString​(byte[] data)
                                      throws javax.jms.JMSException
        Throws:
        javax.jms.JMSException
      • encodeString

        protected static byte[] encodeString​(String data)
                                      throws javax.jms.JMSException
        Throws:
        javax.jms.JMSException
      • getJMSReplyTo

        public javax.jms.Destination getJMSReplyTo()
        Specified by:
        getJMSReplyTo in interface javax.jms.Message
      • setJMSReplyTo

        public void setJMSReplyTo​(javax.jms.Destination destination)
                           throws javax.jms.JMSException
        Specified by:
        setJMSReplyTo in interface javax.jms.Message
        Throws:
        javax.jms.JMSException
      • getJMSDestination

        public javax.jms.Destination getJMSDestination()
        Specified by:
        getJMSDestination in interface javax.jms.Message
      • setJMSDestination

        public void setJMSDestination​(javax.jms.Destination destination)
                               throws javax.jms.JMSException
        Specified by:
        setJMSDestination in interface javax.jms.Message
        Throws:
        javax.jms.JMSException
      • getJMSDeliveryMode

        public int getJMSDeliveryMode()
        Specified by:
        getJMSDeliveryMode in interface javax.jms.Message
      • setJMSDeliveryMode

        public void setJMSDeliveryMode​(int mode)
        Specified by:
        setJMSDeliveryMode in interface javax.jms.Message
      • getJMSRedelivered

        public boolean getJMSRedelivered()
        Specified by:
        getJMSRedelivered in interface javax.jms.Message
      • setJMSRedelivered

        public void setJMSRedelivered​(boolean redelivered)
        Specified by:
        setJMSRedelivered in interface javax.jms.Message
      • getJMSType

        public String getJMSType()
        Specified by:
        getJMSType in interface javax.jms.Message
      • setJMSType

        public void setJMSType​(String type)
        Specified by:
        setJMSType in interface javax.jms.Message
      • getJMSExpiration

        public long getJMSExpiration()
        Specified by:
        getJMSExpiration in interface javax.jms.Message
      • setJMSExpiration

        public void setJMSExpiration​(long expiration)
        Specified by:
        setJMSExpiration in interface javax.jms.Message
      • getJMSPriority

        public int getJMSPriority()
        Specified by:
        getJMSPriority in interface javax.jms.Message
      • setJMSPriority

        public void setJMSPriority​(int priority)
        Specified by:
        setJMSPriority in interface javax.jms.Message
      • clearProperties

        public void clearProperties()
        Specified by:
        clearProperties in interface javax.jms.Message
        Overrides:
        clearProperties in class Message
      • propertyExists

        public boolean propertyExists​(String name)
                               throws javax.jms.JMSException
        Specified by:
        propertyExists in interface javax.jms.Message
        Throws:
        javax.jms.JMSException
      • getPropertyNames

        public Enumeration getPropertyNames()
                                     throws javax.jms.JMSException
        Specified by:
        getPropertyNames in interface javax.jms.Message
        Throws:
        javax.jms.JMSException
      • getAllPropertyNames

        public Enumeration getAllPropertyNames()
                                        throws javax.jms.JMSException
        return all property names, including standard JMS properties and JMSX properties
        Returns:
        Enumeration of all property names on this message
        Throws:
        javax.jms.JMSException
      • setObjectProperty

        public void setObjectProperty​(String name,
                                      Object value)
                               throws javax.jms.JMSException
        Specified by:
        setObjectProperty in interface javax.jms.Message
        Throws:
        javax.jms.JMSException
      • setObjectProperty

        public void setObjectProperty​(String name,
                                      Object value,
                                      boolean checkReadOnly)
                               throws javax.jms.JMSException
        Throws:
        javax.jms.JMSException
      • setProperties

        public void setProperties​(Map<String,​?> properties)
                           throws javax.jms.JMSException
        Throws:
        javax.jms.JMSException
      • checkValidObject

        protected void checkValidObject​(Object value)
                                 throws javax.jms.MessageFormatException
        Throws:
        javax.jms.MessageFormatException
      • convertScheduled

        protected Object convertScheduled​(String name,
                                          Object value)
                                   throws javax.jms.MessageFormatException
        Throws:
        javax.jms.MessageFormatException
      • getObjectProperty

        public Object getObjectProperty​(String name)
                                 throws javax.jms.JMSException
        Specified by:
        getObjectProperty in interface javax.jms.Message
        Throws:
        javax.jms.JMSException
      • getBooleanProperty

        public boolean getBooleanProperty​(String name)
                                   throws javax.jms.JMSException
        Specified by:
        getBooleanProperty in interface javax.jms.Message
        Throws:
        javax.jms.JMSException
      • getByteProperty

        public byte getByteProperty​(String name)
                             throws javax.jms.JMSException
        Specified by:
        getByteProperty in interface javax.jms.Message
        Throws:
        javax.jms.JMSException
      • getShortProperty

        public short getShortProperty​(String name)
                               throws javax.jms.JMSException
        Specified by:
        getShortProperty in interface javax.jms.Message
        Throws:
        javax.jms.JMSException
      • getIntProperty

        public int getIntProperty​(String name)
                           throws javax.jms.JMSException
        Specified by:
        getIntProperty in interface javax.jms.Message
        Throws:
        javax.jms.JMSException
      • getLongProperty

        public long getLongProperty​(String name)
                             throws javax.jms.JMSException
        Specified by:
        getLongProperty in interface javax.jms.Message
        Throws:
        javax.jms.JMSException
      • getFloatProperty

        public float getFloatProperty​(String name)
                               throws javax.jms.JMSException
        Specified by:
        getFloatProperty in interface javax.jms.Message
        Throws:
        javax.jms.JMSException
      • getDoubleProperty

        public double getDoubleProperty​(String name)
                                 throws javax.jms.JMSException
        Specified by:
        getDoubleProperty in interface javax.jms.Message
        Throws:
        javax.jms.JMSException
      • getStringProperty

        public String getStringProperty​(String name)
                                 throws javax.jms.JMSException
        Specified by:
        getStringProperty in interface javax.jms.Message
        Throws:
        javax.jms.JMSException
      • setBooleanProperty

        public void setBooleanProperty​(String name,
                                       boolean value)
                                throws javax.jms.JMSException
        Specified by:
        setBooleanProperty in interface javax.jms.Message
        Throws:
        javax.jms.JMSException
      • setBooleanProperty

        public void setBooleanProperty​(String name,
                                       boolean value,
                                       boolean checkReadOnly)
                                throws javax.jms.JMSException
        Throws:
        javax.jms.JMSException
      • setByteProperty

        public void setByteProperty​(String name,
                                    byte value)
                             throws javax.jms.JMSException
        Specified by:
        setByteProperty in interface javax.jms.Message
        Throws:
        javax.jms.JMSException
      • setShortProperty

        public void setShortProperty​(String name,
                                     short value)
                              throws javax.jms.JMSException
        Specified by:
        setShortProperty in interface javax.jms.Message
        Throws:
        javax.jms.JMSException
      • setIntProperty

        public void setIntProperty​(String name,
                                   int value)
                            throws javax.jms.JMSException
        Specified by:
        setIntProperty in interface javax.jms.Message
        Throws:
        javax.jms.JMSException
      • setLongProperty

        public void setLongProperty​(String name,
                                    long value)
                             throws javax.jms.JMSException
        Specified by:
        setLongProperty in interface javax.jms.Message
        Throws:
        javax.jms.JMSException
      • setFloatProperty

        public void setFloatProperty​(String name,
                                     float value)
                              throws javax.jms.JMSException
        Specified by:
        setFloatProperty in interface javax.jms.Message
        Throws:
        javax.jms.JMSException
      • setDoubleProperty

        public void setDoubleProperty​(String name,
                                      double value)
                               throws javax.jms.JMSException
        Specified by:
        setDoubleProperty in interface javax.jms.Message
        Throws:
        javax.jms.JMSException
      • setStringProperty

        public void setStringProperty​(String name,
                                      String value)
                               throws javax.jms.JMSException
        Specified by:
        setStringProperty in interface javax.jms.Message
        Throws:
        javax.jms.JMSException
      • checkReadOnlyProperties

        protected void checkReadOnlyProperties()
                                        throws javax.jms.MessageNotWriteableException
        Throws:
        javax.jms.MessageNotWriteableException
      • checkReadOnlyBody

        protected void checkReadOnlyBody()
                                  throws javax.jms.MessageNotWriteableException
        Throws:
        javax.jms.MessageNotWriteableException
      • getAcknowledgeCallback

        public Callback getAcknowledgeCallback()
      • setAcknowledgeCallback

        public void setAcknowledgeCallback​(Callback acknowledgeCallback)
      • onSend

        public void onSend()
                    throws javax.jms.JMSException
        Send operation event listener. Used to get the message ready to be sent.
        Throws:
        javax.jms.JMSException
      • getJMSDeliveryTime

        public long getJMSDeliveryTime()
                                throws javax.jms.JMSException
        Specified by:
        getJMSDeliveryTime in interface javax.jms.Message
        Throws:
        javax.jms.JMSException
      • setJMSDeliveryTime

        public void setJMSDeliveryTime​(long deliveryTime)
                                throws javax.jms.JMSException
        Specified by:
        setJMSDeliveryTime in interface javax.jms.Message
        Throws:
        javax.jms.JMSException
      • getBody

        public final <T> T getBody​(Class<T> asType)
                            throws javax.jms.JMSException
        Specified by:
        getBody in interface javax.jms.Message
        Throws:
        javax.jms.JMSException
      • isBodyAssignableTo

        public boolean isBodyAssignableTo​(Class c)
                                   throws javax.jms.JMSException
        Specified by:
        isBodyAssignableTo in interface javax.jms.Message
        Throws:
        javax.jms.JMSException
      • doGetBody

        protected <T> T doGetBody​(Class<T> asType)
                           throws javax.jms.JMSException
        Throws:
        javax.jms.JMSException