Class ActiveMQMapMessage
java.lang.Object
org.apache.activemq.artemis.jms.client.ActiveMQMessage
org.apache.activemq.artemis.jms.client.ActiveMQMapMessage
- All Implemented Interfaces:
jakarta.jms.MapMessage,jakarta.jms.Message
- Direct Known Subclasses:
ActiveMQMapCompatibleMessage
ActiveMQ Artemis implementation of a JMS MapMessage.
-
Field Summary
FieldsFields inherited from class org.apache.activemq.artemis.jms.client.ActiveMQMessage
message, OLD_QUEUE_QUALIFIED_PREFIX, OLD_TEMP_QUEUE_QUALIFED_PREFIX, OLD_TEMP_TOPIC_QUALIFED_PREFIX, OLD_TOPIC_QUALIFIED_PREFIX, propertiesReadOnly, readOnly, replyToFields inherited from interface jakarta.jms.Message
DEFAULT_DELIVERY_DELAY, DEFAULT_DELIVERY_MODE, DEFAULT_PRIORITY, DEFAULT_TIME_TO_LIVE -
Constructor Summary
ConstructorsModifierConstructorDescriptionActiveMQMapMessage(jakarta.jms.MapMessage foreign, ClientSession session) Constructor for a foreign MapMessageprotectedActiveMQMapMessage(ClientMessage message, ClientSession session) This constructor is used during readingprotectedActiveMQMapMessage(ClientSession session) This constructor is used to construct messages prior to sending -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidprotected <T> TgetBodyInternal(Class<T> c) booleangetBoolean(String name) bytebyte[]chardoublefloatintlongshortbytegetType()protected booleanHelper method forActiveMQMessage.isBodyAssignableTo(Class).booleanFrom the specs:booleanitemExists(String name) voidsetBoolean(String name, boolean value) voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidMethods inherited from class org.apache.activemq.artemis.jms.client.ActiveMQMessage
acknowledge, checkBuffer, checkPrefix, checkPrefixStr, checkRead, checkWrite, clearProperties, coreCompositeTypeToJMSCompositeType, coreMaptoJMSMap, createMessage, createMessage, getBody, getBooleanProperty, getByteProperty, getCoreMessage, getDoubleProperty, getFloatProperty, getIntProperty, getJMSCorrelationID, getJMSCorrelationIDAsBytes, getJMSDeliveryMode, getJMSDeliveryTime, getJMSDestination, getJMSExpiration, getJMSMessageID, getJMSPriority, getJMSRedelivered, getJMSReplyTo, getJMSTimestamp, getJMSType, getLongProperty, getObjectProperty, getPropertyNames, getShortProperty, getStringProperty, prefixOf, propertyExists, resetMessageID, saveToOutputStream, setBooleanProperty, setByteProperty, setClientAcknowledge, setDoubleProperty, setFloatProperty, setIndividualAcknowledge, setInputStream, setIntProperty, setJMSCorrelationID, setJMSCorrelationIDAsBytes, setJMSDeliveryMode, setJMSDeliveryTime, setJMSDestination, setJMSExpiration, setJMSMessageID, setJMSPriority, setJMSRedelivered, setJMSReplyTo, setJMSTimestamp, setJMSType, setLongProperty, setObjectProperty, setOutputStream, setShortProperty, setStringProperty, toString, waitCompletionOnStreamMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface jakarta.jms.Message
acknowledge, clearProperties, getBody, getBooleanProperty, getByteProperty, getDoubleProperty, getFloatProperty, getIntProperty, getJMSCorrelationID, getJMSCorrelationIDAsBytes, getJMSDeliveryMode, getJMSDeliveryTime, getJMSDestination, getJMSExpiration, getJMSMessageID, getJMSPriority, getJMSRedelivered, getJMSReplyTo, getJMSTimestamp, getJMSType, getLongProperty, getObjectProperty, getPropertyNames, getShortProperty, getStringProperty, propertyExists, setBooleanProperty, setByteProperty, setDoubleProperty, setFloatProperty, setIntProperty, setJMSCorrelationID, setJMSCorrelationIDAsBytes, setJMSDeliveryMode, setJMSDeliveryTime, setJMSDestination, setJMSExpiration, setJMSMessageID, setJMSPriority, setJMSRedelivered, setJMSReplyTo, setJMSTimestamp, setJMSType, setLongProperty, setObjectProperty, setShortProperty, setStringProperty
-
Field Details
-
TYPE
public static final byte TYPE- See Also:
-
-
Constructor Details
-
ActiveMQMapMessage
This constructor is used to construct messages prior to sending -
ActiveMQMapMessage
This constructor is used during reading -
ActiveMQMapMessage
public ActiveMQMapMessage() -
ActiveMQMapMessage
public ActiveMQMapMessage(jakarta.jms.MapMessage foreign, ClientSession session) throws jakarta.jms.JMSException Constructor for a foreign MapMessage- Throws:
jakarta.jms.JMSException
-
-
Method Details
-
getType
public byte getType()- Overrides:
getTypein classActiveMQMessage
-
setBoolean
- Specified by:
setBooleanin interfacejakarta.jms.MapMessage- Throws:
jakarta.jms.JMSException
-
setByte
- Specified by:
setBytein interfacejakarta.jms.MapMessage- Throws:
jakarta.jms.JMSException
-
setShort
- Specified by:
setShortin interfacejakarta.jms.MapMessage- Throws:
jakarta.jms.JMSException
-
setChar
- Specified by:
setCharin interfacejakarta.jms.MapMessage- Throws:
jakarta.jms.JMSException
-
setInt
- Specified by:
setIntin interfacejakarta.jms.MapMessage- Throws:
jakarta.jms.JMSException
-
setLong
- Specified by:
setLongin interfacejakarta.jms.MapMessage- Throws:
jakarta.jms.JMSException
-
setFloat
- Specified by:
setFloatin interfacejakarta.jms.MapMessage- Throws:
jakarta.jms.JMSException
-
setDouble
- Specified by:
setDoublein interfacejakarta.jms.MapMessage- Throws:
jakarta.jms.JMSException
-
setString
- Specified by:
setStringin interfacejakarta.jms.MapMessage- Throws:
jakarta.jms.JMSException
-
setBytes
- Specified by:
setBytesin interfacejakarta.jms.MapMessage- Throws:
jakarta.jms.JMSException
-
setBytes
public void setBytes(String name, byte[] value, int offset, int length) throws jakarta.jms.JMSException - Specified by:
setBytesin interfacejakarta.jms.MapMessage- Throws:
jakarta.jms.JMSException
-
setObject
- Specified by:
setObjectin interfacejakarta.jms.MapMessage- Throws:
jakarta.jms.JMSException
-
getBoolean
- Specified by:
getBooleanin interfacejakarta.jms.MapMessage- Throws:
jakarta.jms.JMSException
-
getByte
- Specified by:
getBytein interfacejakarta.jms.MapMessage- Throws:
jakarta.jms.JMSException
-
getShort
- Specified by:
getShortin interfacejakarta.jms.MapMessage- Throws:
jakarta.jms.JMSException
-
getChar
- Specified by:
getCharin interfacejakarta.jms.MapMessage- Throws:
jakarta.jms.JMSException
-
getInt
- Specified by:
getIntin interfacejakarta.jms.MapMessage- Throws:
jakarta.jms.JMSException
-
getLong
- Specified by:
getLongin interfacejakarta.jms.MapMessage- Throws:
jakarta.jms.JMSException
-
getFloat
- Specified by:
getFloatin interfacejakarta.jms.MapMessage- Throws:
jakarta.jms.JMSException
-
getDouble
- Specified by:
getDoublein interfacejakarta.jms.MapMessage- Throws:
jakarta.jms.JMSException
-
getString
- Specified by:
getStringin interfacejakarta.jms.MapMessage- Throws:
jakarta.jms.JMSException
-
getBytes
- Specified by:
getBytesin interfacejakarta.jms.MapMessage- Throws:
jakarta.jms.JMSException
-
getObject
- Specified by:
getObjectin interfacejakarta.jms.MapMessage- Throws:
jakarta.jms.JMSException
-
getMapNames
- Specified by:
getMapNamesin interfacejakarta.jms.MapMessage- Throws:
jakarta.jms.JMSException
-
itemExists
- Specified by:
itemExistsin interfacejakarta.jms.MapMessage- Throws:
jakarta.jms.JMSException
-
clearBody
public void clearBody() throws jakarta.jms.JMSException- Specified by:
clearBodyin interfacejakarta.jms.Message- Overrides:
clearBodyin classActiveMQMessage- Throws:
jakarta.jms.JMSException
-
doBeforeSend
- Overrides:
doBeforeSendin classActiveMQMessage- Throws:
Exception
-
doBeforeReceive
- Overrides:
doBeforeReceivein classActiveMQMessage- Throws:
ActiveMQException
-
hasNoBody
protected boolean hasNoBody()Description copied from class:ActiveMQMessageHelper method forActiveMQMessage.isBodyAssignableTo(Class).- Overrides:
hasNoBodyin classActiveMQMessage- Returns:
trueif the message has no body
-
isBodyAssignableTo
Description copied from class:ActiveMQMessageFrom the specs:If the message is a
Message(but not one of its subtypes) then this method will returntrueirrespective of the value of this parameter.- Specified by:
isBodyAssignableToin interfacejakarta.jms.Message- Overrides:
isBodyAssignableToin classActiveMQMessage
-
getBodyInternal
- Overrides:
getBodyInternalin classActiveMQMessage
-