public class ActiveMQMapMessage extends ActiveMQMessage implements javax.jms.MapMessage
Modifier and Type | Field and Description |
---|---|
static byte |
TYPE |
message, OLD_QUEUE_QUALIFIED_PREFIX, OLD_TEMP_QUEUE_QUALIFED_PREFIX, OLD_TEMP_TOPIC_QUALIFED_PREFIX, OLD_TOPIC_QUALIFIED_PREFIX, propertiesReadOnly, readOnly, replyTo
Modifier | Constructor and Description |
---|---|
|
ActiveMQMapMessage() |
protected |
ActiveMQMapMessage(ClientMessage message,
ClientSession session) |
protected |
ActiveMQMapMessage(ClientSession session) |
|
ActiveMQMapMessage(javax.jms.MapMessage foreign,
ClientSession session)
Constructor for a foreign MapMessage
|
Modifier and Type | Method and Description |
---|---|
void |
clearBody() |
void |
doBeforeReceive() |
void |
doBeforeSend() |
protected <T> T |
getBodyInternal(Class<T> c) |
boolean |
getBoolean(String name) |
byte |
getByte(String name) |
byte[] |
getBytes(String name) |
char |
getChar(String name) |
double |
getDouble(String name) |
float |
getFloat(String name) |
int |
getInt(String name) |
long |
getLong(String name) |
Enumeration |
getMapNames() |
Object |
getObject(String name) |
short |
getShort(String name) |
String |
getString(String name) |
byte |
getType() |
protected boolean |
hasNoBody()
Helper method for
ActiveMQMessage.isBodyAssignableTo(Class) . |
boolean |
isBodyAssignableTo(Class c) |
boolean |
itemExists(String name) |
void |
setBoolean(String name,
boolean value) |
void |
setByte(String name,
byte value) |
void |
setBytes(String name,
byte[] value) |
void |
setBytes(String name,
byte[] value,
int offset,
int length) |
void |
setChar(String name,
char value) |
void |
setDouble(String name,
double value) |
void |
setFloat(String name,
float value) |
void |
setInt(String name,
int value) |
void |
setLong(String name,
long value) |
void |
setObject(String name,
Object value) |
void |
setShort(String name,
short value) |
void |
setString(String name,
String value) |
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, waitCompletionOnStream
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
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
public static final byte TYPE
protected ActiveMQMapMessage(ClientSession session)
protected ActiveMQMapMessage(ClientMessage message, ClientSession session)
public ActiveMQMapMessage()
public ActiveMQMapMessage(javax.jms.MapMessage foreign, ClientSession session) throws javax.jms.JMSException
foreign
- javax.jms.JMSException
public byte getType()
getType
in class ActiveMQMessage
public void setBoolean(String name, boolean value) throws javax.jms.JMSException
setBoolean
in interface javax.jms.MapMessage
javax.jms.JMSException
public void setByte(String name, byte value) throws javax.jms.JMSException
setByte
in interface javax.jms.MapMessage
javax.jms.JMSException
public void setShort(String name, short value) throws javax.jms.JMSException
setShort
in interface javax.jms.MapMessage
javax.jms.JMSException
public void setChar(String name, char value) throws javax.jms.JMSException
setChar
in interface javax.jms.MapMessage
javax.jms.JMSException
public void setInt(String name, int value) throws javax.jms.JMSException
setInt
in interface javax.jms.MapMessage
javax.jms.JMSException
public void setLong(String name, long value) throws javax.jms.JMSException
setLong
in interface javax.jms.MapMessage
javax.jms.JMSException
public void setFloat(String name, float value) throws javax.jms.JMSException
setFloat
in interface javax.jms.MapMessage
javax.jms.JMSException
public void setDouble(String name, double value) throws javax.jms.JMSException
setDouble
in interface javax.jms.MapMessage
javax.jms.JMSException
public void setString(String name, String value) throws javax.jms.JMSException
setString
in interface javax.jms.MapMessage
javax.jms.JMSException
public void setBytes(String name, byte[] value) throws javax.jms.JMSException
setBytes
in interface javax.jms.MapMessage
javax.jms.JMSException
public void setBytes(String name, byte[] value, int offset, int length) throws javax.jms.JMSException
setBytes
in interface javax.jms.MapMessage
javax.jms.JMSException
public void setObject(String name, Object value) throws javax.jms.JMSException
setObject
in interface javax.jms.MapMessage
javax.jms.JMSException
public boolean getBoolean(String name) throws javax.jms.JMSException
getBoolean
in interface javax.jms.MapMessage
javax.jms.JMSException
public byte getByte(String name) throws javax.jms.JMSException
getByte
in interface javax.jms.MapMessage
javax.jms.JMSException
public short getShort(String name) throws javax.jms.JMSException
getShort
in interface javax.jms.MapMessage
javax.jms.JMSException
public char getChar(String name) throws javax.jms.JMSException
getChar
in interface javax.jms.MapMessage
javax.jms.JMSException
public int getInt(String name) throws javax.jms.JMSException
getInt
in interface javax.jms.MapMessage
javax.jms.JMSException
public long getLong(String name) throws javax.jms.JMSException
getLong
in interface javax.jms.MapMessage
javax.jms.JMSException
public float getFloat(String name) throws javax.jms.JMSException
getFloat
in interface javax.jms.MapMessage
javax.jms.JMSException
public double getDouble(String name) throws javax.jms.JMSException
getDouble
in interface javax.jms.MapMessage
javax.jms.JMSException
public String getString(String name) throws javax.jms.JMSException
getString
in interface javax.jms.MapMessage
javax.jms.JMSException
public byte[] getBytes(String name) throws javax.jms.JMSException
getBytes
in interface javax.jms.MapMessage
javax.jms.JMSException
public Object getObject(String name) throws javax.jms.JMSException
getObject
in interface javax.jms.MapMessage
javax.jms.JMSException
public Enumeration getMapNames() throws javax.jms.JMSException
getMapNames
in interface javax.jms.MapMessage
javax.jms.JMSException
public boolean itemExists(String name) throws javax.jms.JMSException
itemExists
in interface javax.jms.MapMessage
javax.jms.JMSException
public void clearBody() throws javax.jms.JMSException
clearBody
in interface javax.jms.Message
clearBody
in class ActiveMQMessage
javax.jms.JMSException
public void doBeforeSend() throws Exception
doBeforeSend
in class ActiveMQMessage
Exception
public void doBeforeReceive() throws ActiveMQException
doBeforeReceive
in class ActiveMQMessage
ActiveMQException
protected boolean hasNoBody()
ActiveMQMessage
ActiveMQMessage.isBodyAssignableTo(Class)
.hasNoBody
in class ActiveMQMessage
public boolean isBodyAssignableTo(Class c)
isBodyAssignableTo
in interface javax.jms.Message
isBodyAssignableTo
in class ActiveMQMessage
protected <T> T getBodyInternal(Class<T> c)
getBodyInternal
in class ActiveMQMessage
Copyright © 2020 The Apache Software Foundation. All rights reserved.