public class ActiveMQRAMessage extends Object implements javax.jms.Message
Modifier and Type | Field and Description |
---|---|
protected javax.jms.Message |
message
The message
|
protected ActiveMQRASession |
session
The session
|
Constructor and Description |
---|
ActiveMQRAMessage(javax.jms.Message message,
ActiveMQRASession session)
Create a new wrapper
|
Modifier and Type | Method and Description |
---|---|
void |
acknowledge()
Acknowledge
|
void |
clearBody()
Clear body
|
void |
clearProperties()
Clear properties
|
boolean |
equals(Object object)
Check for equality
|
<T> T |
getBody(Class<T> c) |
boolean |
getBooleanProperty(String name)
Get property
|
byte |
getByteProperty(String name)
Get property
|
double |
getDoubleProperty(String name)
Get property
|
float |
getFloatProperty(String name)
Get property
|
int |
getIntProperty(String name)
Get property
|
String |
getJMSCorrelationID()
Get correlation id
|
byte[] |
getJMSCorrelationIDAsBytes()
Get correlation id
|
int |
getJMSDeliveryMode()
Get delivery mode
|
long |
getJMSDeliveryTime() |
javax.jms.Destination |
getJMSDestination()
Get destination
|
long |
getJMSExpiration()
Get expiration
|
String |
getJMSMessageID()
Get message id
|
int |
getJMSPriority()
Get priority
|
boolean |
getJMSRedelivered()
Get redelivered status
|
javax.jms.Destination |
getJMSReplyTo()
Get reply to destination
|
long |
getJMSTimestamp()
Get timestamp
|
String |
getJMSType()
Get type
|
long |
getLongProperty(String name)
Get property
|
Object |
getObjectProperty(String name)
Get property
|
Enumeration |
getPropertyNames()
Get property names
|
short |
getShortProperty(String name)
Get property
|
String |
getStringProperty(String name)
Get property
|
int |
hashCode()
Return the hash code
|
boolean |
isBodyAssignableTo(Class c) |
boolean |
propertyExists(String name)
Do property exist
|
void |
setBooleanProperty(String name,
boolean value)
Set property
|
void |
setByteProperty(String name,
byte value)
Set property
|
void |
setDoubleProperty(String name,
double value)
Set property
|
void |
setFloatProperty(String name,
float value)
Set property
|
void |
setIntProperty(String name,
int value)
Set property
|
void |
setJMSCorrelationID(String correlationID)
Set correlation id
|
void |
setJMSCorrelationIDAsBytes(byte[] correlationID)
Set correlation id
|
void |
setJMSDeliveryMode(int deliveryMode)
Set delivery mode
|
void |
setJMSDeliveryTime(long deliveryTime) |
void |
setJMSDestination(javax.jms.Destination destination)
Set destination
|
void |
setJMSExpiration(long expiration)
Set expiration
|
void |
setJMSMessageID(String id)
Set message id
|
void |
setJMSPriority(int priority)
Set priority
|
void |
setJMSRedelivered(boolean redelivered)
Set redelivered status
|
void |
setJMSReplyTo(javax.jms.Destination replyTo)
Set reply to
|
void |
setJMSTimestamp(long timestamp)
Set timestamp
|
void |
setJMSType(String type)
Set type
|
void |
setLongProperty(String name,
long value)
Set property
|
void |
setObjectProperty(String name,
Object value)
Set property
|
void |
setShortProperty(String name,
short value)
Set property
|
void |
setStringProperty(String name,
String value)
Set property
|
String |
toString()
Return string representation
|
protected javax.jms.Message message
protected ActiveMQRASession session
public ActiveMQRAMessage(javax.jms.Message message, ActiveMQRASession session)
message
- the messagesession
- the sessionpublic void acknowledge() throws javax.jms.JMSException
acknowledge
in interface javax.jms.Message
javax.jms.JMSException
- Thrown if an error occurspublic void clearBody() throws javax.jms.JMSException
clearBody
in interface javax.jms.Message
javax.jms.JMSException
- Thrown if an error occurspublic void clearProperties() throws javax.jms.JMSException
clearProperties
in interface javax.jms.Message
javax.jms.JMSException
- Thrown if an error occurspublic boolean getBooleanProperty(String name) throws javax.jms.JMSException
getBooleanProperty
in interface javax.jms.Message
name
- The namejavax.jms.JMSException
- Thrown if an error occurspublic byte getByteProperty(String name) throws javax.jms.JMSException
getByteProperty
in interface javax.jms.Message
name
- The namejavax.jms.JMSException
- Thrown if an error occurspublic double getDoubleProperty(String name) throws javax.jms.JMSException
getDoubleProperty
in interface javax.jms.Message
name
- The namejavax.jms.JMSException
- Thrown if an error occurspublic float getFloatProperty(String name) throws javax.jms.JMSException
getFloatProperty
in interface javax.jms.Message
name
- The namejavax.jms.JMSException
- Thrown if an error occurspublic int getIntProperty(String name) throws javax.jms.JMSException
getIntProperty
in interface javax.jms.Message
name
- The namejavax.jms.JMSException
- Thrown if an error occurspublic String getJMSCorrelationID() throws javax.jms.JMSException
getJMSCorrelationID
in interface javax.jms.Message
javax.jms.JMSException
- Thrown if an error occurspublic byte[] getJMSCorrelationIDAsBytes() throws javax.jms.JMSException
getJMSCorrelationIDAsBytes
in interface javax.jms.Message
javax.jms.JMSException
- Thrown if an error occurspublic int getJMSDeliveryMode() throws javax.jms.JMSException
getJMSDeliveryMode
in interface javax.jms.Message
javax.jms.JMSException
- Thrown if an error occurspublic javax.jms.Destination getJMSDestination() throws javax.jms.JMSException
getJMSDestination
in interface javax.jms.Message
javax.jms.JMSException
- Thrown if an error occurspublic long getJMSExpiration() throws javax.jms.JMSException
getJMSExpiration
in interface javax.jms.Message
javax.jms.JMSException
- Thrown if an error occurspublic String getJMSMessageID() throws javax.jms.JMSException
getJMSMessageID
in interface javax.jms.Message
javax.jms.JMSException
- Thrown if an error occurspublic int getJMSPriority() throws javax.jms.JMSException
getJMSPriority
in interface javax.jms.Message
javax.jms.JMSException
- Thrown if an error occurspublic boolean getJMSRedelivered() throws javax.jms.JMSException
getJMSRedelivered
in interface javax.jms.Message
javax.jms.JMSException
- Thrown if an error occurspublic javax.jms.Destination getJMSReplyTo() throws javax.jms.JMSException
getJMSReplyTo
in interface javax.jms.Message
javax.jms.JMSException
- Thrown if an error occurspublic long getJMSTimestamp() throws javax.jms.JMSException
getJMSTimestamp
in interface javax.jms.Message
javax.jms.JMSException
- Thrown if an error occurspublic String getJMSType() throws javax.jms.JMSException
getJMSType
in interface javax.jms.Message
javax.jms.JMSException
- Thrown if an error occurspublic long getLongProperty(String name) throws javax.jms.JMSException
getLongProperty
in interface javax.jms.Message
name
- The namejavax.jms.JMSException
- Thrown if an error occurspublic Object getObjectProperty(String name) throws javax.jms.JMSException
getObjectProperty
in interface javax.jms.Message
name
- The namejavax.jms.JMSException
- Thrown if an error occurspublic Enumeration getPropertyNames() throws javax.jms.JMSException
getPropertyNames
in interface javax.jms.Message
javax.jms.JMSException
- Thrown if an error occurspublic short getShortProperty(String name) throws javax.jms.JMSException
getShortProperty
in interface javax.jms.Message
name
- The namejavax.jms.JMSException
- Thrown if an error occurspublic String getStringProperty(String name) throws javax.jms.JMSException
getStringProperty
in interface javax.jms.Message
name
- The namejavax.jms.JMSException
- Thrown if an error occurspublic boolean propertyExists(String name) throws javax.jms.JMSException
propertyExists
in interface javax.jms.Message
name
- The namejavax.jms.JMSException
- Thrown if an error occurspublic void setBooleanProperty(String name, boolean value) throws javax.jms.JMSException
setBooleanProperty
in interface javax.jms.Message
name
- The namevalue
- The valuejavax.jms.JMSException
- Thrown if an error occurspublic void setByteProperty(String name, byte value) throws javax.jms.JMSException
setByteProperty
in interface javax.jms.Message
name
- The namevalue
- The valuejavax.jms.JMSException
- Thrown if an error occurspublic void setDoubleProperty(String name, double value) throws javax.jms.JMSException
setDoubleProperty
in interface javax.jms.Message
name
- The namevalue
- The valuejavax.jms.JMSException
- Thrown if an error occurspublic void setFloatProperty(String name, float value) throws javax.jms.JMSException
setFloatProperty
in interface javax.jms.Message
name
- The namevalue
- The valuejavax.jms.JMSException
- Thrown if an error occurspublic void setIntProperty(String name, int value) throws javax.jms.JMSException
setIntProperty
in interface javax.jms.Message
name
- The namevalue
- The valuejavax.jms.JMSException
- Thrown if an error occurspublic void setJMSCorrelationID(String correlationID) throws javax.jms.JMSException
setJMSCorrelationID
in interface javax.jms.Message
correlationID
- The valuejavax.jms.JMSException
- Thrown if an error occurspublic void setJMSCorrelationIDAsBytes(byte[] correlationID) throws javax.jms.JMSException
setJMSCorrelationIDAsBytes
in interface javax.jms.Message
correlationID
- The valuejavax.jms.JMSException
- Thrown if an error occurspublic void setJMSDeliveryMode(int deliveryMode) throws javax.jms.JMSException
setJMSDeliveryMode
in interface javax.jms.Message
deliveryMode
- The valuejavax.jms.JMSException
- Thrown if an error occurspublic void setJMSDestination(javax.jms.Destination destination) throws javax.jms.JMSException
setJMSDestination
in interface javax.jms.Message
destination
- The valuejavax.jms.JMSException
- Thrown if an error occurspublic void setJMSExpiration(long expiration) throws javax.jms.JMSException
setJMSExpiration
in interface javax.jms.Message
expiration
- The valuejavax.jms.JMSException
- Thrown if an error occurspublic void setJMSMessageID(String id) throws javax.jms.JMSException
setJMSMessageID
in interface javax.jms.Message
id
- The valuejavax.jms.JMSException
- Thrown if an error occurspublic void setJMSPriority(int priority) throws javax.jms.JMSException
setJMSPriority
in interface javax.jms.Message
priority
- The valuejavax.jms.JMSException
- Thrown if an error occurspublic void setJMSRedelivered(boolean redelivered) throws javax.jms.JMSException
setJMSRedelivered
in interface javax.jms.Message
redelivered
- The valuejavax.jms.JMSException
- Thrown if an error occurspublic void setJMSReplyTo(javax.jms.Destination replyTo) throws javax.jms.JMSException
setJMSReplyTo
in interface javax.jms.Message
replyTo
- The valuejavax.jms.JMSException
- Thrown if an error occurspublic void setJMSTimestamp(long timestamp) throws javax.jms.JMSException
setJMSTimestamp
in interface javax.jms.Message
timestamp
- The valuejavax.jms.JMSException
- Thrown if an error occurspublic void setJMSType(String type) throws javax.jms.JMSException
setJMSType
in interface javax.jms.Message
type
- The valuejavax.jms.JMSException
- Thrown if an error occurspublic void setLongProperty(String name, long value) throws javax.jms.JMSException
setLongProperty
in interface javax.jms.Message
name
- The namevalue
- The valuejavax.jms.JMSException
- Thrown if an error occurspublic void setObjectProperty(String name, Object value) throws javax.jms.JMSException
setObjectProperty
in interface javax.jms.Message
name
- The namevalue
- The valuejavax.jms.JMSException
- Thrown if an error occurspublic void setShortProperty(String name, short value) throws javax.jms.JMSException
setShortProperty
in interface javax.jms.Message
name
- The namevalue
- The valuejavax.jms.JMSException
- Thrown if an error occurspublic void setStringProperty(String name, String value) throws javax.jms.JMSException
setStringProperty
in interface javax.jms.Message
name
- The namevalue
- The valuejavax.jms.JMSException
- Thrown if an error occurspublic 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
public boolean isBodyAssignableTo(Class c) throws javax.jms.JMSException
isBodyAssignableTo
in interface javax.jms.Message
javax.jms.JMSException
public int hashCode()
public boolean equals(Object object)
Copyright © 2016 The Apache Software Foundation. All rights reserved.