|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MessageHandle
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 |
---|
MessageId getMessageId()
void setDelivered()
void setDelivered(boolean value)
boolean
- valueboolean getDelivered()
void setPriority(int priority)
priority
- int getPriority()
void setAcceptedTime(long time)
time
- - time that it was set in mslong getAcceptedTime()
void setExpiryTime(long time)
time
- - time that it was set in mslong getExpiryTime()
void setSequenceNumber(long seq)
seq
- - the sequence numberlong getSequenceNumber()
void setDestination(JmsDestination dest)
dest
- - the message destinationJmsDestination getDestination()
void setClientId(long clientId)
clientId
- - client identitylong getClientId()
void setConsumerName(java.lang.String name)
name
- - consumer nameboolean isPersistent()
DeliveryMode
of the underlying message
is PERSISTENT
java.lang.String getConsumerName()
MessageImpl getMessage()
void destroy()
void clear()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |