|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jms4spread.Message
A basic Message Class that supports the 5 Message Types.
Field Summary | |
static int |
DEFAULT_DELIVERY_MODE
The Default Delivery Mode is NON_PERISTANT. |
static int |
DEFAULT_PRIORITY
The Default Priority is 4 |
static int |
DEFAULT_TIME_TO_LIVE
The Default time to live is unlimmited |
Method Summary | |
void |
clearBody()
Clears the body of the message. |
void |
clearProperties()
Clears the properties of the message. |
java.lang.String |
getJMSCorrelationID()
Gets the JMSCorrelationID of the message |
byte[] |
getJMSCorrelationIDAsBytes()
Gets the JMSCorrelationID of the message as Bytes |
int |
getJMSDeliveryMode()
Gets the JMSDeliveryMode for the message |
Destination |
getJMSDestination()
Gets the Destination for the message |
long |
getJMSExpiration()
Gets the Expiration for the Message |
java.lang.String |
getJMSMessageType()
Get the Message Type |
int |
getJMSPriority()
Gets the priority for the Message |
boolean |
getJMSRedelivered()
Gives an indication if the message is Redelivered |
Destination |
getJMSReplyTo()
Gets the Destination Object to which the Reply should be sent |
java.lang.String |
getMessageID()
Gets the ID for the Message |
long |
JMSTimeStamp()
Gets the JMS Time Stamp |
void |
setJMSCorrelationID(java.lang.String CorrelationID)
Sets the JMSCorrelationID of the message |
void |
setJMSCorrelationIDAsBytes(byte[] correlationID)
Sets the JMSCorrelationID of the message as Bytes |
void |
setJMSDeliveryMode(int deliveryMode)
Sets the JMSDeliveryMode for the message. |
void |
setJMSDestination(Destination destination)
sets the Destination for the message |
void |
setJMSExpiration(long expiration)
Sets the Expiration for the Message |
void |
setJMSMessageType(java.lang.String messType)
Sets the Message Type |
void |
setJMSPriority(int priority)
Sets the priority for the Message This priority is not used by the messaging system |
void |
setJMSRedelivered(boolean redelivered)
Indicated that the message is being redelivered |
void |
setJMSReplyTo(Destination replyTo)
Gets the Destination Object to which the Reply should be sent |
void |
setJMSTimeStamp(long timeStamp)
Sets the JMS Time Stamp |
void |
setMessageID(java.lang.String messageID)
Sets the ID for the Message |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static int DEFAULT_DELIVERY_MODE
public static int DEFAULT_PRIORITY
public static int DEFAULT_TIME_TO_LIVE
Method Detail |
public void clearBody() throws JMSException
public void clearProperties()
public java.lang.String getJMSCorrelationID()
public void setJMSCorrelationID(java.lang.String CorrelationID)
public byte[] getJMSCorrelationIDAsBytes()
public void setJMSCorrelationIDAsBytes(byte[] correlationID)
public int getJMSDeliveryMode()
public void setJMSDeliveryMode(int deliveryMode)
public Destination getJMSDestination()
public void setJMSDestination(Destination destination)
Destination
- Destination for the Messagepublic long getJMSExpiration()
public void setJMSExpiration(long expiration)
public java.lang.String getMessageID()
public void setMessageID(java.lang.String messageID)
messageID
- the ID to be setpublic int getJMSPriority()
public void setJMSPriority(int priority)
priority
- message prioritypublic boolean getJMSRedelivered()
public void setJMSRedelivered(boolean redelivered)
redelivered
- a booleanpublic Destination getJMSReplyTo()
public void setJMSReplyTo(Destination replyTo)
Destination
- Objectpublic long JMSTimeStamp()
public void setJMSTimeStamp(long timeStamp)
timeStamp
- the JMSTimeStamppublic java.lang.String getJMSMessageType()
public void setJMSMessageType(java.lang.String messType)
messType
- the message type
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |