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:
javax.jms.MapMessage,javax.jms.Message
public class ActiveMQRAMapMessage extends ActiveMQRAMessage implements javax.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(javax.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 javax.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(javax.jms.MapMessage message, ActiveMQRASession session)Create a new wrapper- Parameters:
message- the messagesession- the session
-
-
Method Detail
-
getBoolean
public boolean getBoolean(String name) throws javax.jms.JMSException
Get- Specified by:
getBooleanin interfacejavax.jms.MapMessage- Parameters:
name- The name- Returns:
- The value
- Throws:
javax.jms.JMSException- Thrown if an error occurs
-
getByte
public byte getByte(String name) throws javax.jms.JMSException
Get- Specified by:
getBytein interfacejavax.jms.MapMessage- Parameters:
name- The name- Returns:
- The value
- Throws:
javax.jms.JMSException- Thrown if an error occurs
-
getBytes
public byte[] getBytes(String name) throws javax.jms.JMSException
Get- Specified by:
getBytesin interfacejavax.jms.MapMessage- Parameters:
name- The name- Returns:
- The value
- Throws:
javax.jms.JMSException- Thrown if an error occurs
-
getChar
public char getChar(String name) throws javax.jms.JMSException
Get- Specified by:
getCharin interfacejavax.jms.MapMessage- Parameters:
name- The name- Returns:
- The value
- Throws:
javax.jms.JMSException- Thrown if an error occurs
-
getDouble
public double getDouble(String name) throws javax.jms.JMSException
Get- Specified by:
getDoublein interfacejavax.jms.MapMessage- Parameters:
name- The name- Returns:
- The value
- Throws:
javax.jms.JMSException- Thrown if an error occurs
-
getFloat
public float getFloat(String name) throws javax.jms.JMSException
Get- Specified by:
getFloatin interfacejavax.jms.MapMessage- Parameters:
name- The name- Returns:
- The value
- Throws:
javax.jms.JMSException- Thrown if an error occurs
-
getInt
public int getInt(String name) throws javax.jms.JMSException
Get- Specified by:
getIntin interfacejavax.jms.MapMessage- Parameters:
name- The name- Returns:
- The value
- Throws:
javax.jms.JMSException- Thrown if an error occurs
-
getLong
public long getLong(String name) throws javax.jms.JMSException
Get- Specified by:
getLongin interfacejavax.jms.MapMessage- Parameters:
name- The name- Returns:
- The value
- Throws:
javax.jms.JMSException- Thrown if an error occurs
-
getMapNames
public Enumeration getMapNames() throws javax.jms.JMSException
Get the map names- Specified by:
getMapNamesin interfacejavax.jms.MapMessage- Returns:
- The values
- Throws:
javax.jms.JMSException- Thrown if an error occurs
-
getObject
public Object getObject(String name) throws javax.jms.JMSException
Get- Specified by:
getObjectin interfacejavax.jms.MapMessage- Parameters:
name- The name- Returns:
- The value
- Throws:
javax.jms.JMSException- Thrown if an error occurs
-
getShort
public short getShort(String name) throws javax.jms.JMSException
Get- Specified by:
getShortin interfacejavax.jms.MapMessage- Parameters:
name- The name- Returns:
- The value
- Throws:
javax.jms.JMSException- Thrown if an error occurs
-
getString
public String getString(String name) throws javax.jms.JMSException
Get- Specified by:
getStringin interfacejavax.jms.MapMessage- Parameters:
name- The name- Returns:
- The value
- Throws:
javax.jms.JMSException- Thrown if an error occurs
-
itemExists
public boolean itemExists(String name) throws javax.jms.JMSException
Does the item exist- Specified by:
itemExistsin interfacejavax.jms.MapMessage- Parameters:
name- The name- Returns:
- True / false
- Throws:
javax.jms.JMSException- Thrown if an error occurs
-
setBoolean
public void setBoolean(String name, boolean value) throws javax.jms.JMSException
Set- Specified by:
setBooleanin interfacejavax.jms.MapMessage- Parameters:
name- The namevalue- The value- Throws:
javax.jms.JMSException- Thrown if an error occurs
-
setByte
public void setByte(String name, byte value) throws javax.jms.JMSException
Set- Specified by:
setBytein interfacejavax.jms.MapMessage- Parameters:
name- The namevalue- The value- Throws:
javax.jms.JMSException- Thrown if an error occurs
-
setBytes
public void setBytes(String name, byte[] value, int offset, int length) throws javax.jms.JMSException
Set- Specified by:
setBytesin interfacejavax.jms.MapMessage- Parameters:
name- The namevalue- The valueoffset- The offsetlength- The length- Throws:
javax.jms.JMSException- Thrown if an error occurs
-
setBytes
public void setBytes(String name, byte[] value) throws javax.jms.JMSException
Set- Specified by:
setBytesin interfacejavax.jms.MapMessage- Parameters:
name- The namevalue- The value- Throws:
javax.jms.JMSException- Thrown if an error occurs
-
setChar
public void setChar(String name, char value) throws javax.jms.JMSException
Set- Specified by:
setCharin interfacejavax.jms.MapMessage- Parameters:
name- The namevalue- The value- Throws:
javax.jms.JMSException- Thrown if an error occurs
-
setDouble
public void setDouble(String name, double value) throws javax.jms.JMSException
Set- Specified by:
setDoublein interfacejavax.jms.MapMessage- Parameters:
name- The namevalue- The value- Throws:
javax.jms.JMSException- Thrown if an error occurs
-
setFloat
public void setFloat(String name, float value) throws javax.jms.JMSException
Set- Specified by:
setFloatin interfacejavax.jms.MapMessage- Parameters:
name- The namevalue- The value- Throws:
javax.jms.JMSException- Thrown if an error occurs
-
setInt
public void setInt(String name, int value) throws javax.jms.JMSException
Set- Specified by:
setIntin interfacejavax.jms.MapMessage- Parameters:
name- The namevalue- The value- Throws:
javax.jms.JMSException- Thrown if an error occurs
-
setLong
public void setLong(String name, long value) throws javax.jms.JMSException
Set- Specified by:
setLongin interfacejavax.jms.MapMessage- Parameters:
name- The namevalue- The value- Throws:
javax.jms.JMSException- Thrown if an error occurs
-
setObject
public void setObject(String name, Object value) throws javax.jms.JMSException
Set- Specified by:
setObjectin interfacejavax.jms.MapMessage- Parameters:
name- The namevalue- The value- Throws:
javax.jms.JMSException- Thrown if an error occurs
-
setShort
public void setShort(String name, short value) throws javax.jms.JMSException
Set- Specified by:
setShortin interfacejavax.jms.MapMessage- Parameters:
name- The namevalue- The value- Throws:
javax.jms.JMSException- Thrown if an error occurs
-
-