|
||||||||
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.
MessageMgr
,
TransientMessageHandle
,
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 |
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()
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 |
boolean |
isPersistent()
Check whether the the DeliveryMode of the underlying message
is PERSISTENT |
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 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 void setDelivered(boolean value)
boolean
- valuepublic 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 void setConsumerName(java.lang.String name)
name
- - consumer namepublic boolean isPersistent()
DeliveryMode
of the underlying message
is PERSISTENTpublic java.lang.String getConsumerName()
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 |