|
||||||||||
| 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.
MessageHandleComparator| Method Summary | |
void |
add()
Make the handle persistent. |
void |
destroy()
Destroy this handle. |
long |
getAcceptedTime()
Returns the time that the corresponding message was accepted, in milliseconds. |
long |
getConnectionId()
Returns the connection identity associated with the message. |
long |
getConsumerId()
Returns the consumer identity associated with the message. |
java.lang.String |
getConsumerPersistentId()
Returns the persistent identity of the the consumer endpoint that owns this handle. |
boolean |
getDelivered()
Returns if an attempt has already been made to deliver the message. |
JmsDestination |
getDestination()
Returns the message destination. |
long |
getExpiryTime()
Returns the time that the message expires, in milliseconds. |
MessageImpl |
getMessage()
Returns the message associated with this handle. |
java.lang.String |
getMessageId()
Returns the message identifier. |
MessageRef |
getMessageRef()
Returns the message reference. |
int |
getPriority()
Returns the priority of the message. |
long |
getSequenceNumber()
Returns the handle's sequence number. |
boolean |
hasExpired()
Determines if the message has expired. |
boolean |
isPersistent()
Determines if the handle is persistent. |
void |
release()
Release the message handle back to the cache, to recover an unsent or unacknowledged message. |
void |
setDelivered(boolean delivered)
Indicates if a message has been delivered to a MessageConsumer,
but not acknowledged. |
void |
update()
Update the persistent handle. |
| Method Detail |
public java.lang.String getMessageId()
public void setDelivered(boolean delivered)
MessageConsumer,
but not acknowledged.delivered - if true indicates that an attempt has been
made to deliver the messagepublic boolean getDelivered()
true if delivery has been attemptedpublic int getPriority()
public long getAcceptedTime()
public long getExpiryTime()
public boolean hasExpired()
true if the message has expired, otherwise
falsepublic long getSequenceNumber()
public JmsDestination getDestination()
public long getConsumerId()
-1 if the message isn't associated with a consumerpublic long getConnectionId()
-1 if the message isn't associated with a
connectionpublic java.lang.String getConsumerPersistentId()
nullpublic boolean isPersistent()
true if the handle is persistent; otherwise
false
public MessageImpl getMessage()
throws javax.jms.JMSException
null if the handle is no
longer validjavax.jms.JMSException - for any error
public void add()
throws javax.jms.JMSException
javax.jms.JMSException - for any persistence error
public void update()
throws javax.jms.JMSException
javax.jms.JMSException - for any persistence error
public void destroy()
throws javax.jms.JMSException
javax.jms.JMSException - for any error
public void release()
throws javax.jms.JMSException
javax.jms.JMSException - for any errorpublic MessageRef getMessageRef()
null if none has been set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||