|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
A message handle is used to indirectly reference a message in
the message manager. It can be resolved through the
MessageManager
org.exolab.jms.messagemgr.TransientMessageHandle,
org.exolab.jms.messagemgr.PersistentMessageHandle| Method Summary | |
void |
clear()
Clear the message handle |
void |
destroy()
Destory this handle |
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()
Retrieve the destination for this handle |
long |
getExpiryTime()
Return time that the message expires. |
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()
Retrieve the handle's sequence number |
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 |
setDestination(JmsDestination dest)
Set the destination for this handle |
void |
setExpiryTime(long time)
Set the time that the message will expire |
void |
setPriority(int priority)
Set the priority of the message handle |
void |
setSequenceNumber(long seq)
Set the sequence nmber for the handle. |
| Methods inherited from interface java.io.Externalizable |
readExternal, writeExternal |
| Method Detail |
public MessageId getMessageId()
public void setDelivered()
public boolean getDelivered()
public void setPriority(int priority)
priority - public int getPriority()
public void setAcceptedTime(long time)
time - - time that it was set in mspublic long getAcceptedTime()
public void setExpiryTime(long time)
time - - time that it was set in mspublic long getExpiryTime()
public void setSequenceNumber(long seq)
seq - - the sequence numberpublic long getSequenceNumber()
public void setDestination(JmsDestination dest)
dest - - the message destinationpublic JmsDestination getDestination()
public void setClientId(long clientId)
clientId - - client identitypublic long getClientId()
public MessageImpl getMessage()
public void destroy()
public void clear()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||