|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--org.exolab.jms.messagemgr.AbstractMessageHandle
|
+--org.exolab.jms.messagemgr.PersistentMessageHandle
A persistent message handle extends MessageHandle and references a
persistent message. These messages can be discarded from the cache and later
faulted in.
| Constructor Summary | |
PersistentMessageHandle(MessageImpl message,
java.lang.String persistentId)
Construct a new PersistentMessageHandle, for a particular
consumer. |
|
PersistentMessageHandle(java.lang.String messageId,
int priority,
long acceptedTime,
long sequenceNumber,
long expiryTime,
JmsDestination destination)
Construct a new PersistentMessageHandle. |
|
PersistentMessageHandle(java.lang.String messageId,
int priority,
long acceptedTime,
long sequenceNumber,
long expiryTime,
JmsDestination destination,
java.lang.String persistentId)
Construct a new PersistentMessageHandle, for a particular
consumer. |
|
| Method Summary | |
void |
add()
Make the handle persistent. |
void |
destroy()
Destroy this handle. |
java.lang.String |
getConsumerPersistentId()
Returns the persistent identity of the the consumer endpoint that owns this handle. |
boolean |
isPersistent()
Determines if the handle is persistent. |
void |
reference(MessageRef reference)
Reference a message. |
void |
update()
Update this handle. |
| Methods inherited from class org.exolab.jms.messagemgr.AbstractMessageHandle |
equals, getAcceptedTime, getConnectionId, getConsumerId, getDelivered, getDestination, getExpiryTime, getMessage, getMessageId, getMessageRef, getPriority, getSequenceNumber, hasExpired, hashCode, release, release, setDelivered, setDestinationCache, setMessageRef, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public PersistentMessageHandle(MessageImpl message,
java.lang.String persistentId)
throws javax.jms.JMSException
PersistentMessageHandle, for a particular
consumer.message - the message to construct the handle forpersistentId - the persistent identity of the consumer.
May be null.javax.jms.JMSException - for any error
public PersistentMessageHandle(java.lang.String messageId,
int priority,
long acceptedTime,
long sequenceNumber,
long expiryTime,
JmsDestination destination)
PersistentMessageHandle.messageId - the message identifierpriority - the message priorityacceptedTime - the time the message was accepted by the serversequenceNumber - the message sequence numberexpiryTime - the time that the message will expire
public PersistentMessageHandle(java.lang.String messageId,
int priority,
long acceptedTime,
long sequenceNumber,
long expiryTime,
JmsDestination destination,
java.lang.String persistentId)
PersistentMessageHandle, for a particular
consumer.messageId - the message identifierpriority - the message priorityacceptedTime - the time the message was accepted by the serversequenceNumber - the message sequence numberexpiryTime - the time that the message will expirepersistentId - the persistent identity of the consumer. May be
null.| Method Detail |
public boolean isPersistent()
isPersistent in class AbstractMessageHandletrue
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 reference(MessageRef reference)
throws javax.jms.JMSException
javax.jms.JMSException - for any errorpublic java.lang.String getConsumerPersistentId()
getConsumerPersistentId in class AbstractMessageHandlenull
public void destroy()
throws javax.jms.JMSException
destroy in class AbstractMessageHandlejavax.jms.JMSException - for any error
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||