|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--jrun.jms.core.messagemgr.AbstractMessageHandle
A message handle is used to indirectly reference a message in
the message manager. It can be resolved through the
MessageManager
| Constructor Summary | |
AbstractMessageHandle()
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 |
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()
|
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 |
setDelivered()
Set the message, corresponding to this handle, has already been delivered once before |
void |
setDelivered(boolean value)
Set the delivered flag for the underlying message. |
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 AbstractMessageHandle()
| 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)
value - - true if deliveredpublic 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 MessageHandlejrun.jms.core.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 MessageImpl getMessage()
getMessage in interface MessageHandlepublic java.lang.String toString()
toString in class java.lang.Objectpublic void clear()
clear 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 | ||||||||