public interface Message
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_DELIVERY_MODE |
static int |
DEFAULT_PRIORITY |
static long |
DEFAULT_TIME_TO_LIVE |
| Modifier and Type | Method and Description |
|---|---|
void |
acknowledge() |
void |
clearBody() |
void |
clearProperties() |
boolean |
getBooleanProperty(java.lang.String name) |
byte |
getByteProperty(java.lang.String name) |
double |
getDoubleProperty(java.lang.String name) |
float |
getFloatProperty(java.lang.String name) |
int |
getIntProperty(java.lang.String name) |
java.lang.String |
getJMSCorrelationID() |
byte[] |
getJMSCorrelationIDAsBytes() |
int |
getJMSDeliveryMode() |
Destination |
getJMSDestination() |
long |
getJMSExpiration() |
java.lang.String |
getJMSMessageID() |
int |
getJMSPriority() |
boolean |
getJMSRedelivered() |
Destination |
getJMSReplyTo() |
long |
getJMSTimestamp() |
java.lang.String |
getJMSType() |
long |
getLongProperty(java.lang.String name) |
java.lang.Object |
getObjectProperty(java.lang.String name) |
java.util.Enumeration |
getPropertyNames() |
short |
getShortProperty(java.lang.String name) |
java.lang.String |
getStringProperty(java.lang.String name) |
boolean |
propertyExists(java.lang.String name) |
void |
setBooleanProperty(java.lang.String name,
boolean value) |
void |
setByteProperty(java.lang.String name,
byte value) |
void |
setDoubleProperty(java.lang.String name,
double value) |
void |
setFloatProperty(java.lang.String name,
float value) |
void |
setIntProperty(java.lang.String name,
int value) |
void |
setJMSCorrelationID(java.lang.String id) |
void |
setJMSCorrelationIDAsBytes(byte[] value) |
void |
setJMSDeliveryMode(int deliveryMode) |
void |
setJMSDestination(Destination replyTo) |
void |
setJMSExpiration(long expiration) |
void |
setJMSMessageID(java.lang.String id) |
void |
setJMSPriority(int expiration) |
void |
setJMSRedelivered(boolean isRedelivered) |
void |
setJMSReplyTo(Destination replyTo) |
void |
setJMSTimestamp(long timestamp) |
void |
setJMSType(java.lang.String type) |
void |
setLongProperty(java.lang.String name,
long value) |
void |
setObjectProperty(java.lang.String name,
java.lang.Object value) |
void |
setShortProperty(java.lang.String name,
short value) |
void |
setStringProperty(java.lang.String name,
java.lang.String value) |
static final int DEFAULT_DELIVERY_MODE
static final int DEFAULT_PRIORITY
static final long DEFAULT_TIME_TO_LIVE
java.lang.String getJMSMessageID()
throws JMSException
JMSExceptionvoid setJMSMessageID(java.lang.String id)
throws JMSException
JMSExceptionlong getJMSTimestamp()
throws JMSException
JMSExceptionvoid setJMSTimestamp(long timestamp)
throws JMSException
JMSExceptionbyte[] getJMSCorrelationIDAsBytes()
throws JMSException
JMSExceptionvoid setJMSCorrelationIDAsBytes(byte[] value)
throws JMSException
JMSExceptionjava.lang.String getJMSCorrelationID()
throws JMSException
JMSExceptionvoid setJMSCorrelationID(java.lang.String id)
throws JMSException
JMSExceptionDestination getJMSReplyTo() throws JMSException
JMSExceptionvoid setJMSReplyTo(Destination replyTo) throws JMSException
JMSExceptionDestination getJMSDestination() throws JMSException
JMSExceptionvoid setJMSDestination(Destination replyTo) throws JMSException
JMSExceptionint getJMSDeliveryMode()
throws JMSException
JMSExceptionvoid setJMSDeliveryMode(int deliveryMode)
throws JMSException
JMSExceptionboolean getJMSRedelivered()
throws JMSException
JMSExceptionvoid setJMSRedelivered(boolean isRedelivered)
throws JMSException
JMSExceptionjava.lang.String getJMSType()
throws JMSException
JMSExceptionvoid setJMSType(java.lang.String type)
throws JMSException
JMSExceptionlong getJMSExpiration()
throws JMSException
JMSExceptionvoid setJMSExpiration(long expiration)
throws JMSException
JMSExceptionint getJMSPriority()
throws JMSException
JMSExceptionvoid setJMSPriority(int expiration)
throws JMSException
JMSExceptionvoid clearProperties()
throws JMSException
JMSExceptionboolean propertyExists(java.lang.String name)
throws JMSException
JMSExceptionboolean getBooleanProperty(java.lang.String name)
throws JMSException
JMSExceptionbyte getByteProperty(java.lang.String name)
throws JMSException
JMSExceptionshort getShortProperty(java.lang.String name)
throws JMSException
JMSExceptionint getIntProperty(java.lang.String name)
throws JMSException
JMSExceptionlong getLongProperty(java.lang.String name)
throws JMSException
JMSExceptionfloat getFloatProperty(java.lang.String name)
throws JMSException
JMSExceptiondouble getDoubleProperty(java.lang.String name)
throws JMSException
JMSExceptionjava.lang.String getStringProperty(java.lang.String name)
throws JMSException
JMSExceptionjava.lang.Object getObjectProperty(java.lang.String name)
throws JMSException
JMSExceptionjava.util.Enumeration getPropertyNames()
throws JMSException
JMSExceptionvoid setBooleanProperty(java.lang.String name,
boolean value)
throws JMSException
JMSExceptionvoid setByteProperty(java.lang.String name,
byte value)
throws JMSException
JMSExceptionvoid setShortProperty(java.lang.String name,
short value)
throws JMSException
JMSExceptionvoid setIntProperty(java.lang.String name,
int value)
throws JMSException
JMSExceptionvoid setLongProperty(java.lang.String name,
long value)
throws JMSException
JMSExceptionvoid setFloatProperty(java.lang.String name,
float value)
throws JMSException
JMSExceptionvoid setDoubleProperty(java.lang.String name,
double value)
throws JMSException
JMSExceptionvoid setStringProperty(java.lang.String name,
java.lang.String value)
throws JMSException
JMSExceptionvoid setObjectProperty(java.lang.String name,
java.lang.Object value)
throws JMSException
JMSExceptionvoid acknowledge()
throws JMSException
JMSExceptionvoid clearBody()
throws JMSException
JMSException