public class ActiveMQMessage extends Object implements javax.jms.Message
Modifier and Type | Field and Description |
---|---|
protected ClientMessage |
message |
static SimpleString |
OLD_QUEUE_QUALIFIED_PREFIX |
static SimpleString |
OLD_TEMP_QUEUE_QUALIFED_PREFIX |
static SimpleString |
OLD_TEMP_TOPIC_QUALIFED_PREFIX |
static SimpleString |
OLD_TOPIC_QUALIFIED_PREFIX |
protected boolean |
propertiesReadOnly |
protected boolean |
readOnly |
protected javax.jms.Destination |
replyTo |
static byte |
TYPE |
Modifier | Constructor and Description |
---|---|
|
ActiveMQMessage() |
protected |
ActiveMQMessage(byte type,
ClientSession session) |
|
ActiveMQMessage(ClientMessage message,
ClientSession session)
Constructor for when receiving a message from the server
|
protected |
ActiveMQMessage(ClientSession session) |
protected |
ActiveMQMessage(javax.jms.Message foreign,
byte type,
ClientSession session) |
|
ActiveMQMessage(javax.jms.Message foreign,
ClientSession session) |
public static final byte TYPE
public static final SimpleString OLD_QUEUE_QUALIFIED_PREFIX
public static final SimpleString OLD_TEMP_QUEUE_QUALIFED_PREFIX
public static final SimpleString OLD_TOPIC_QUALIFIED_PREFIX
public static final SimpleString OLD_TEMP_TOPIC_QUALIFED_PREFIX
protected ClientMessage message
protected boolean readOnly
protected boolean propertiesReadOnly
protected javax.jms.Destination replyTo
protected ActiveMQMessage(byte type, ClientSession session)
protected ActiveMQMessage(ClientSession session)
public ActiveMQMessage(ClientMessage message, ClientSession session)
public ActiveMQMessage(javax.jms.Message foreign, ClientSession session) throws javax.jms.JMSException
javax.jms.JMSException
public ActiveMQMessage()
protected ActiveMQMessage(javax.jms.Message foreign, byte type, ClientSession session) throws javax.jms.JMSException
javax.jms.JMSException
public static CompositeData coreCompositeTypeToJMSCompositeType(CompositeDataSupport data) throws Exception
Exception
public static ActiveMQMessage createMessage(ClientMessage message, ClientSession session)
public static ActiveMQMessage createMessage(ClientMessage message, ClientSession session, ConnectionFactoryOptions options)
public String getJMSMessageID()
getJMSMessageID
in interface javax.jms.Message
public void setJMSMessageID(String jmsMessageID) throws javax.jms.JMSException
setJMSMessageID
in interface javax.jms.Message
javax.jms.JMSException
public long getJMSTimestamp() throws javax.jms.JMSException
getJMSTimestamp
in interface javax.jms.Message
javax.jms.JMSException
public void setJMSTimestamp(long timestamp) throws javax.jms.JMSException
setJMSTimestamp
in interface javax.jms.Message
javax.jms.JMSException
public byte[] getJMSCorrelationIDAsBytes() throws javax.jms.JMSException
getJMSCorrelationIDAsBytes
in interface javax.jms.Message
javax.jms.JMSException
public void setJMSCorrelationIDAsBytes(byte[] correlationID) throws javax.jms.JMSException
setJMSCorrelationIDAsBytes
in interface javax.jms.Message
javax.jms.JMSException
public void setJMSCorrelationID(String correlationID) throws javax.jms.JMSException
setJMSCorrelationID
in interface javax.jms.Message
javax.jms.JMSException
public String getJMSCorrelationID() throws javax.jms.JMSException
getJMSCorrelationID
in interface javax.jms.Message
javax.jms.JMSException
public javax.jms.Destination getJMSReplyTo() throws javax.jms.JMSException
getJMSReplyTo
in interface javax.jms.Message
javax.jms.JMSException
public void setJMSReplyTo(javax.jms.Destination dest) throws javax.jms.JMSException
setJMSReplyTo
in interface javax.jms.Message
javax.jms.JMSException
public static String prefixOf(javax.jms.Destination dest)
protected SimpleString checkPrefix(SimpleString address)
protected SimpleString checkPrefixStr(SimpleString address)
public javax.jms.Destination getJMSDestination() throws javax.jms.JMSException
getJMSDestination
in interface javax.jms.Message
javax.jms.JMSException
public void setJMSDestination(javax.jms.Destination destination) throws javax.jms.JMSException
setJMSDestination
in interface javax.jms.Message
javax.jms.JMSException
public int getJMSDeliveryMode() throws javax.jms.JMSException
getJMSDeliveryMode
in interface javax.jms.Message
javax.jms.JMSException
public void setJMSDeliveryMode(int deliveryMode) throws javax.jms.JMSException
setJMSDeliveryMode
in interface javax.jms.Message
javax.jms.JMSException
public boolean getJMSRedelivered() throws javax.jms.JMSException
getJMSRedelivered
in interface javax.jms.Message
javax.jms.JMSException
public void setJMSRedelivered(boolean redelivered) throws javax.jms.JMSException
setJMSRedelivered
in interface javax.jms.Message
javax.jms.JMSException
public void setJMSType(String type) throws javax.jms.JMSException
setJMSType
in interface javax.jms.Message
javax.jms.JMSException
public String getJMSType() throws javax.jms.JMSException
getJMSType
in interface javax.jms.Message
javax.jms.JMSException
public long getJMSExpiration() throws javax.jms.JMSException
getJMSExpiration
in interface javax.jms.Message
javax.jms.JMSException
public void setJMSExpiration(long expiration) throws javax.jms.JMSException
setJMSExpiration
in interface javax.jms.Message
javax.jms.JMSException
public int getJMSPriority() throws javax.jms.JMSException
getJMSPriority
in interface javax.jms.Message
javax.jms.JMSException
public void setJMSPriority(int priority) throws javax.jms.JMSException
setJMSPriority
in interface javax.jms.Message
javax.jms.JMSException
public void clearProperties() throws javax.jms.JMSException
clearProperties
in interface javax.jms.Message
javax.jms.JMSException
public void clearBody() throws javax.jms.JMSException
clearBody
in interface javax.jms.Message
javax.jms.JMSException
public boolean propertyExists(String name) throws javax.jms.JMSException
propertyExists
in interface javax.jms.Message
javax.jms.JMSException
public boolean getBooleanProperty(String name) throws javax.jms.JMSException
getBooleanProperty
in interface javax.jms.Message
javax.jms.JMSException
public byte getByteProperty(String name) throws javax.jms.JMSException
getByteProperty
in interface javax.jms.Message
javax.jms.JMSException
public short getShortProperty(String name) throws javax.jms.JMSException
getShortProperty
in interface javax.jms.Message
javax.jms.JMSException
public int getIntProperty(String name) throws javax.jms.JMSException
getIntProperty
in interface javax.jms.Message
javax.jms.JMSException
public long getLongProperty(String name) throws javax.jms.JMSException
getLongProperty
in interface javax.jms.Message
javax.jms.JMSException
public float getFloatProperty(String name) throws javax.jms.JMSException
getFloatProperty
in interface javax.jms.Message
javax.jms.JMSException
public double getDoubleProperty(String name) throws javax.jms.JMSException
getDoubleProperty
in interface javax.jms.Message
javax.jms.JMSException
public String getStringProperty(String name) throws javax.jms.JMSException
getStringProperty
in interface javax.jms.Message
javax.jms.JMSException
public Object getObjectProperty(String name) throws javax.jms.JMSException
getObjectProperty
in interface javax.jms.Message
javax.jms.JMSException
public Enumeration getPropertyNames() throws javax.jms.JMSException
getPropertyNames
in interface javax.jms.Message
javax.jms.JMSException
public void setBooleanProperty(String name, boolean value) throws javax.jms.JMSException
setBooleanProperty
in interface javax.jms.Message
javax.jms.JMSException
public void setByteProperty(String name, byte value) throws javax.jms.JMSException
setByteProperty
in interface javax.jms.Message
javax.jms.JMSException
public void setShortProperty(String name, short value) throws javax.jms.JMSException
setShortProperty
in interface javax.jms.Message
javax.jms.JMSException
public void setIntProperty(String name, int value) throws javax.jms.JMSException
setIntProperty
in interface javax.jms.Message
javax.jms.JMSException
public void setLongProperty(String name, long value) throws javax.jms.JMSException
setLongProperty
in interface javax.jms.Message
javax.jms.JMSException
public void setFloatProperty(String name, float value) throws javax.jms.JMSException
setFloatProperty
in interface javax.jms.Message
javax.jms.JMSException
public void setDoubleProperty(String name, double value) throws javax.jms.JMSException
setDoubleProperty
in interface javax.jms.Message
javax.jms.JMSException
public void setStringProperty(String name, String value) throws javax.jms.JMSException
setStringProperty
in interface javax.jms.Message
javax.jms.JMSException
public void setObjectProperty(String name, Object value) throws javax.jms.JMSException
setObjectProperty
in interface javax.jms.Message
javax.jms.JMSException
public void acknowledge() throws javax.jms.JMSException
acknowledge
in interface javax.jms.Message
javax.jms.JMSException
public long getJMSDeliveryTime() throws javax.jms.JMSException
getJMSDeliveryTime
in interface javax.jms.Message
javax.jms.JMSException
public void setJMSDeliveryTime(long deliveryTime) throws javax.jms.JMSException
setJMSDeliveryTime
in interface javax.jms.Message
javax.jms.JMSException
public <T> T getBody(Class<T> c) throws javax.jms.JMSException
getBody
in interface javax.jms.Message
javax.jms.JMSException
protected <T> T getBodyInternal(Class<T> c) throws javax.jms.MessageFormatException
javax.jms.MessageFormatException
public boolean isBodyAssignableTo(Class c)
isBodyAssignableTo
in interface javax.jms.Message
protected boolean hasNoBody()
isBodyAssignableTo(Class)
.public void setIndividualAcknowledge()
public void setClientAcknowledge()
public void resetMessageID(String newMsgID)
public ClientMessage getCoreMessage()
public void checkBuffer()
public void doBeforeReceive() throws ActiveMQException
ActiveMQException
public byte getType()
public void setInputStream(InputStream input) throws javax.jms.JMSException
javax.jms.JMSException
public void setOutputStream(OutputStream output) throws javax.jms.JMSException
javax.jms.JMSException
public void saveToOutputStream(OutputStream output) throws javax.jms.JMSException
javax.jms.JMSException
public boolean waitCompletionOnStream(long timeWait) throws javax.jms.JMSException
javax.jms.JMSException
protected void checkWrite() throws javax.jms.JMSException
javax.jms.JMSException
protected void checkRead() throws javax.jms.JMSException
javax.jms.JMSException
Copyright © 2020 The Apache Software Foundation. All rights reserved.