|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.exolab.core.foundation.PersistentObject | +--org.exolab.jms.persistence.PersistentMessage
A wrapper to the Message Object to assist in persistency.
Constructor Summary | |
PersistentMessage()
Default constructor. |
|
PersistentMessage(MessageImpl message)
Store the message to be persisted. |
Method Summary | |
java.lang.String |
getDestination()
Get the message destination |
long |
getExpiryTime()
Retrieve the message expiry time |
long |
getJMSTimeStamp()
Get the time the message was received by the MessageMgr |
MessageImpl |
getMessage()
return the held message from the persistent object. |
byte[] |
getMessageBlob()
Get the message as a serialized blob. |
java.lang.String |
getMessageId()
Get the message id |
java.lang.String |
getMessageType()
Get the message type |
int |
getPriority()
Get the message priority |
boolean |
getProcessed()
Return the state of the processed flag |
void |
readExternal(java.io.ObjectInput stream)
|
void |
setDestination(java.lang.String destination)
Set the message destination |
void |
setExpiryTime(long time)
Set the message expiry time. |
void |
setJMSTimeStamp(long time)
Set the time the message was received by the MessageMgr |
void |
setMessage(MessageImpl message)
Set the message held by this persistent object |
void |
setMessageBlob(byte[] blob)
Set the message from a serialized blob |
void |
setMessageId(java.lang.String id)
Set the message id |
void |
setMessageType(java.lang.String messageType)
Set the message type |
void |
setPriority(int priority)
Set the message priority |
void |
setProcessed(boolean value)
Set the state of the processed flag |
void |
writeExternal(java.io.ObjectOutput stream)
|
Methods inherited from class org.exolab.core.foundation.PersistentObject |
clone, equals, getId, getMinimumObjectSize, getObjectId, getObjectVersion, getVersion, setId, setMinimumObjectSize, setObjectId, setObjectVersion, setVersion |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PersistentMessage()
MessageImpl
- the message to persistpublic PersistentMessage(MessageImpl message) throws javax.jms.JMSException
MessageImpl
- the message to persistMethod Detail |
public void setMessage(MessageImpl message)
message
- - the message heldpublic MessageImpl getMessage()
public byte[] getMessageBlob()
public void setMessageBlob(byte[] blob)
blob
- The serialized message.public java.lang.String getDestination()
public void setDestination(java.lang.String destination)
destination
- The destination of the messagepublic java.lang.String getMessageId()
public void setMessageId(java.lang.String id)
id
- The message idpublic java.lang.String getMessageType()
public void setMessageType(java.lang.String messageType)
messageType
- The message typepublic int getPriority()
public void setPriority(int priority)
priority
- The message priority to setpublic long getJMSTimeStamp()
public void setJMSTimeStamp(long time)
timeStamp
- The message creation time in secs since epocpublic long getExpiryTime()
public void setExpiryTime(long time)
time
- - message expiry time in millisecondspublic void setProcessed(boolean value)
value
- - true if message has been processedpublic boolean getProcessed()
public void writeExternal(java.io.ObjectOutput stream) throws java.io.IOException
writeExternal
in class org.exolab.core.foundation.PersistentObject
public void readExternal(java.io.ObjectInput stream) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in class org.exolab.core.foundation.PersistentObject
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |