Package org.apache.activemq.artemis.ra
Class ActiveMQRAMapMessage
- java.lang.Object
-
- org.apache.activemq.artemis.ra.ActiveMQRAMessage
-
- org.apache.activemq.artemis.ra.ActiveMQRAMapMessage
-
- All Implemented Interfaces:
jakarta.jms.MapMessage,jakarta.jms.Message
public class ActiveMQRAMapMessage extends ActiveMQRAMessage implements jakarta.jms.MapMessage
A wrapper for a message
-
-
Field Summary
-
Fields inherited from class org.apache.activemq.artemis.ra.ActiveMQRAMessage
message, session
-
-
Constructor Summary
Constructors Constructor Description ActiveMQRAMapMessage(jakarta.jms.MapMessage message, ActiveMQRASession session)Create a new wrapper
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetBoolean(String name)GetbytegetByte(String name)Getbyte[]getBytes(String name)GetchargetChar(String name)GetdoublegetDouble(String name)GetfloatgetFloat(String name)GetintgetInt(String name)GetlonggetLong(String name)GetEnumerationgetMapNames()Get the map namesObjectgetObject(String name)GetshortgetShort(String name)GetStringgetString(String name)GetbooleanitemExists(String name)Does the item existvoidsetBoolean(String name, boolean value)SetvoidsetByte(String name, byte value)SetvoidsetBytes(String name, byte[] value)SetvoidsetBytes(String name, byte[] value, int offset, int length)SetvoidsetChar(String name, char value)SetvoidsetDouble(String name, double value)SetvoidsetFloat(String name, float value)SetvoidsetInt(String name, int value)SetvoidsetLong(String name, long value)SetvoidsetObject(String name, Object value)SetvoidsetShort(String name, short value)SetvoidsetString(String name, String value)Set-
Methods inherited from class org.apache.activemq.artemis.ra.ActiveMQRAMessage
acknowledge, clearBody, clearProperties, equals, getBody, getBooleanProperty, getByteProperty, getDoubleProperty, getFloatProperty, getIntProperty, getJMSCorrelationID, getJMSCorrelationIDAsBytes, getJMSDeliveryMode, getJMSDeliveryTime, getJMSDestination, getJMSExpiration, getJMSMessageID, getJMSPriority, getJMSRedelivered, getJMSReplyTo, getJMSTimestamp, getJMSType, getLongProperty, getObjectProperty, getPropertyNames, getShortProperty, getStringProperty, hashCode, isBodyAssignableTo, propertyExists, setBooleanProperty, setByteProperty, setDoubleProperty, setFloatProperty, setIntProperty, setJMSCorrelationID, setJMSCorrelationIDAsBytes, setJMSDeliveryMode, setJMSDeliveryTime, setJMSDestination, setJMSExpiration, setJMSMessageID, setJMSPriority, setJMSRedelivered, setJMSReplyTo, setJMSTimestamp, setJMSType, setLongProperty, setObjectProperty, setShortProperty, setStringProperty, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface jakarta.jms.Message
acknowledge, clearBody, clearProperties, getBody, getBooleanProperty, getByteProperty, getDoubleProperty, getFloatProperty, getIntProperty, getJMSCorrelationID, getJMSCorrelationIDAsBytes, getJMSDeliveryMode, getJMSDeliveryTime, getJMSDestination, getJMSExpiration, getJMSMessageID, getJMSPriority, getJMSRedelivered, getJMSReplyTo, getJMSTimestamp, getJMSType, getLongProperty, getObjectProperty, getPropertyNames, getShortProperty, getStringProperty, isBodyAssignableTo, propertyExists, setBooleanProperty, setByteProperty, setDoubleProperty, setFloatProperty, setIntProperty, setJMSCorrelationID, setJMSCorrelationIDAsBytes, setJMSDeliveryMode, setJMSDeliveryTime, setJMSDestination, setJMSExpiration, setJMSMessageID, setJMSPriority, setJMSRedelivered, setJMSReplyTo, setJMSTimestamp, setJMSType, setLongProperty, setObjectProperty, setShortProperty, setStringProperty
-
-
-
-
Constructor Detail
-
ActiveMQRAMapMessage
public ActiveMQRAMapMessage(jakarta.jms.MapMessage message, ActiveMQRASession session)Create a new wrapper- Parameters:
message- the messagesession- the session
-
-
Method Detail
-
getBoolean
public boolean getBoolean(String name) throws jakarta.jms.JMSException
Get- Specified by:
getBooleanin interfacejakarta.jms.MapMessage- Parameters:
name- The name- Returns:
- The value
- Throws:
jakarta.jms.JMSException- Thrown if an error occurs
-
getByte
public byte getByte(String name) throws jakarta.jms.JMSException
Get- Specified by:
getBytein interfacejakarta.jms.MapMessage- Parameters:
name- The name- Returns:
- The value
- Throws:
jakarta.jms.JMSException- Thrown if an error occurs
-
getBytes
public byte[] getBytes(String name) throws jakarta.jms.JMSException
Get- Specified by:
getBytesin interfacejakarta.jms.MapMessage- Parameters:
name- The name- Returns:
- The value
- Throws:
jakarta.jms.JMSException- Thrown if an error occurs
-
getChar
public char getChar(String name) throws jakarta.jms.JMSException
Get- Specified by:
getCharin interfacejakarta.jms.MapMessage- Parameters:
name- The name- Returns:
- The value
- Throws:
jakarta.jms.JMSException- Thrown if an error occurs
-
getDouble
public double getDouble(String name) throws jakarta.jms.JMSException
Get- Specified by:
getDoublein interfacejakarta.jms.MapMessage- Parameters:
name- The name- Returns:
- The value
- Throws:
jakarta.jms.JMSException- Thrown if an error occurs
-
getFloat
public float getFloat(String name) throws jakarta.jms.JMSException
Get- Specified by:
getFloatin interfacejakarta.jms.MapMessage- Parameters:
name- The name- Returns:
- The value
- Throws:
jakarta.jms.JMSException- Thrown if an error occurs
-
getInt
public int getInt(String name) throws jakarta.jms.JMSException
Get- Specified by:
getIntin interfacejakarta.jms.MapMessage- Parameters:
name- The name- Returns:
- The value
- Throws:
jakarta.jms.JMSException- Thrown if an error occurs
-
getLong
public long getLong(String name) throws jakarta.jms.JMSException
Get- Specified by:
getLongin interfacejakarta.jms.MapMessage- Parameters:
name- The name- Returns:
- The value
- Throws:
jakarta.jms.JMSException- Thrown if an error occurs
-
getMapNames
public Enumeration getMapNames() throws jakarta.jms.JMSException
Get the map names- Specified by:
getMapNamesin interfacejakarta.jms.MapMessage- Returns:
- The values
- Throws:
jakarta.jms.JMSException- Thrown if an error occurs
-
getObject
public Object getObject(String name) throws jakarta.jms.JMSException
Get- Specified by:
getObjectin interfacejakarta.jms.MapMessage- Parameters:
name- The name- Returns:
- The value
- Throws:
jakarta.jms.JMSException- Thrown if an error occurs
-
getShort
public short getShort(String name) throws jakarta.jms.JMSException
Get- Specified by:
getShortin interfacejakarta.jms.MapMessage- Parameters:
name- The name- Returns:
- The value
- Throws:
jakarta.jms.JMSException- Thrown if an error occurs
-
getString
public String getString(String name) throws jakarta.jms.JMSException
Get- Specified by:
getStringin interfacejakarta.jms.MapMessage- Parameters:
name- The name- Returns:
- The value
- Throws:
jakarta.jms.JMSException- Thrown if an error occurs
-
itemExists
public boolean itemExists(String name) throws jakarta.jms.JMSException
Does the item exist- Specified by:
itemExistsin interfacejakarta.jms.MapMessage- Parameters:
name- The name- Returns:
- True / false
- Throws:
jakarta.jms.JMSException- Thrown if an error occurs
-
setBoolean
public void setBoolean(String name, boolean value) throws jakarta.jms.JMSException
Set- Specified by:
setBooleanin interfacejakarta.jms.MapMessage- Parameters:
name- The namevalue- The value- Throws:
jakarta.jms.JMSException- Thrown if an error occurs
-
setByte
public void setByte(String name, byte value) throws jakarta.jms.JMSException
Set- Specified by:
setBytein interfacejakarta.jms.MapMessage- Parameters:
name- The namevalue- The value- Throws:
jakarta.jms.JMSException- Thrown if an error occurs
-
setBytes
public void setBytes(String name, byte[] value, int offset, int length) throws jakarta.jms.JMSException
Set- Specified by:
setBytesin interfacejakarta.jms.MapMessage- Parameters:
name- The namevalue- The valueoffset- The offsetlength- The length- Throws:
jakarta.jms.JMSException- Thrown if an error occurs
-
setBytes
public void setBytes(String name, byte[] value) throws jakarta.jms.JMSException
Set- Specified by:
setBytesin interfacejakarta.jms.MapMessage- Parameters:
name- The namevalue- The value- Throws:
jakarta.jms.JMSException- Thrown if an error occurs
-
setChar
public void setChar(String name, char value) throws jakarta.jms.JMSException
Set- Specified by:
setCharin interfacejakarta.jms.MapMessage- Parameters:
name- The namevalue- The value- Throws:
jakarta.jms.JMSException- Thrown if an error occurs
-
setDouble
public void setDouble(String name, double value) throws jakarta.jms.JMSException
Set- Specified by:
setDoublein interfacejakarta.jms.MapMessage- Parameters:
name- The namevalue- The value- Throws:
jakarta.jms.JMSException- Thrown if an error occurs
-
setFloat
public void setFloat(String name, float value) throws jakarta.jms.JMSException
Set- Specified by:
setFloatin interfacejakarta.jms.MapMessage- Parameters:
name- The namevalue- The value- Throws:
jakarta.jms.JMSException- Thrown if an error occurs
-
setInt
public void setInt(String name, int value) throws jakarta.jms.JMSException
Set- Specified by:
setIntin interfacejakarta.jms.MapMessage- Parameters:
name- The namevalue- The value- Throws:
jakarta.jms.JMSException- Thrown if an error occurs
-
setLong
public void setLong(String name, long value) throws jakarta.jms.JMSException
Set- Specified by:
setLongin interfacejakarta.jms.MapMessage- Parameters:
name- The namevalue- The value- Throws:
jakarta.jms.JMSException- Thrown if an error occurs
-
setObject
public void setObject(String name, Object value) throws jakarta.jms.JMSException
Set- Specified by:
setObjectin interfacejakarta.jms.MapMessage- Parameters:
name- The namevalue- The value- Throws:
jakarta.jms.JMSException- Thrown if an error occurs
-
setShort
public void setShort(String name, short value) throws jakarta.jms.JMSException
Set- Specified by:
setShortin interfacejakarta.jms.MapMessage- Parameters:
name- The namevalue- The value- Throws:
jakarta.jms.JMSException- Thrown if an error occurs
-
-