Class ActiveMQRATextMessage

java.lang.Object
org.apache.activemq.artemis.ra.ActiveMQRAMessage
org.apache.activemq.artemis.ra.ActiveMQRATextMessage
All Implemented Interfaces:
Message, TextMessage

public class ActiveMQRATextMessage extends ActiveMQRAMessage implements TextMessage
A wrapper for a TextMessage.
  • Constructor Details

  • Method Details

    • getText

      public String getText() throws JMSException
      Gets the string containing this message's data. The default value is null.
      Specified by:
      getText in interface TextMessage
      Returns:
      the String containing the message's data
      Throws:
      JMSException - if the Jakarta Messaging provider fails to get the text due to some internal error.
    • setText

      public void setText(String string) throws JMSException
      Sets the string containing this message's data.
      Specified by:
      setText in interface TextMessage
      Parameters:
      string - the String containing the message's data
      Throws:
      JMSException - if the Jakarta Messaging provider fails to set the text due to some internal error.
      MessageNotWriteableException - if the message is in read-only mode.