|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--org.exolab.jms.messagemgr.TransientMessageHandle
A message handle is used to indirectly reference a message in the message manager.
| Constructor Summary | |
TransientMessageHandle()
Default constructor required to support Serialization |
|
| Method Summary | |
void |
clear()
Clear the message handle |
void |
destroy()
Destroy this handle |
boolean |
equals(java.lang.Object object)
|
long |
getAcceptedTime()
Return time that the corresponding message was accepted. |
long |
getClientId()
Retrieve the client identity associated with this handle |
java.lang.String |
getConsumerName()
Return the consumer namne |
boolean |
getDelivered()
Check whether an attempt has already been made to deliver the message before. |
JmsDestination |
getDestination()
Return the destination for this handle |
long |
getExpiryTime()
Return the message expiry time |
MessageImpl |
getMessage()
Return the associated message or null if it is invalid |
MessageId |
getMessageId()
Return the message id |
int |
getPriority()
Return the priority of the underlying message |
long |
getSequenceNumber()
Return message's sequence number |
int |
hashCode()
|
boolean |
isPersistent()
Check whether the the DeliveryMode of the underlying message
is PERSISTENT |
void |
readExternal(java.io.ObjectInput stream)
|
void |
setAcceptedTime(long time)
Set the time that the message was accepted by the server |
void |
setClientId(long clientId)
Set the client id, that owns this handle |
void |
setConsumerName(java.lang.String name)
Set the consumer endpoint that owns this handle. |
void |
setDelivered()
Set the message, corresponding to this handle, has already been delivered once before |
void |
setDelivered(boolean value)
Set the state of the delivered flag to the specified value |
void |
setDestination(JmsDestination destination)
Set the destination that owns this handle |
void |
setExpiryTime(long time)
Set the message expiry time |
void |
setMessageId(MessageId id)
Set the message identity |
void |
setPriority(int priority)
Set the message priority |
void |
setSequenceNumber(long seq)
Set the message's sequence number |
java.lang.String |
toString()
Return a stringified version of the handle |
void |
writeExternal(java.io.ObjectOutput stream)
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public TransientMessageHandle()
| Method Detail |
public MessageId getMessageId()
getMessageId in interface MessageHandlepublic void setMessageId(MessageId id)
id - - the message identitypublic void setDelivered()
setDelivered in interface MessageHandlepublic void setDelivered(boolean value)
setDelivered in interface MessageHandleboolean - valuepublic boolean getDelivered()
getDelivered in interface MessageHandlepublic void setPriority(int priority)
setPriority in interface MessageHandleint - - the message prioritypublic int getPriority()
getPriority in interface MessageHandlepublic void setAcceptedTime(long time)
setAcceptedTime in interface MessageHandletime - - accepted timepublic long getAcceptedTime()
getAcceptedTime in interface MessageHandlepublic void setExpiryTime(long time)
setExpiryTime in interface MessageHandleorg.exolab.jms.message.MessageHandletime - - time that it was set in mspublic long getExpiryTime()
getExpiryTime in interface MessageHandlepublic void setSequenceNumber(long seq)
setSequenceNumber in interface MessageHandleseq - - sequence timepublic long getSequenceNumber()
getSequenceNumber in interface MessageHandlepublic void setDestination(JmsDestination destination)
setDestination in interface MessageHandledestination - - the destinationpublic JmsDestination getDestination()
getDestination in interface MessageHandlepublic void setClientId(long clientId)
setClientId in interface MessageHandleclientId - - client identitypublic long getClientId()
getClientId in interface MessageHandlepublic void setConsumerName(java.lang.String name)
MessageHandlesetConsumerName in interface MessageHandleorg.exolab.jms.message.MessageHandlename - - consumer namepublic java.lang.String getConsumerName()
MessageHandlegetConsumerName in interface MessageHandleorg.exolab.jms.message.MessageHandlepublic MessageImpl getMessage()
getMessage in interface MessageHandlepublic java.lang.String toString()
toString in class java.lang.Objectpublic void clear()
clear in interface MessageHandlepublic boolean isPersistent()
MessageHandleDeliveryMode of the underlying message
is PERSISTENTisPersistent in interface MessageHandlepublic void destroy()
destroy in interface MessageHandlepublic boolean equals(java.lang.Object object)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
public void writeExternal(java.io.ObjectOutput stream)
throws java.io.IOException
writeExternal in interface java.io.Externalizable
public void readExternal(java.io.ObjectInput stream)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizable
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||