|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TopicMessageStore
A MessageStore for durable topic subscriptions
| Method Summary | |
|---|---|
void |
decrementMessageCountAndMaybeDelete(MessageIdentity msgId)
Decrement the reference count of this message ID and if there are no more references then delete the message from persistent store (or maybe archive it off somewhere) |
void |
deleteSubscription(String subscription)
|
MessageIdentity |
getLastestMessageIdentity()
Returns the last message identity that was delivered on this container which can then be used as a checkpoint so that when new durable consumers start, we know where to checkpoint their subscriptions. |
SubscriberEntry |
getSubscriberEntry(ConsumerInfo info)
Finds the subscriber entry for the given consumer info |
void |
incrementMessageCount(MessageIdentity messageId)
Increments the reference count of the message ID as its been dispatched to another subscriber. |
void |
recoverSubscription(String subscriptionId,
MessageIdentity lastDispatchedMessage,
RecoveryListener listener)
For the new subcription find the last acknowledged message ID and then find any new messages since then and dispatch them to the subscription. |
void |
setLastAcknowledgedMessageIdentity(String subscription,
MessageIdentity messageIdentity)
Stores the last acknowledged messgeID for the given subscription so that we can recover and commence dispatching messages from the last checkpoint |
void |
setSubscriberEntry(ConsumerInfo info,
SubscriberEntry subscriberEntry)
Inserts or updates the subscriber info due to a subscription change |
| Methods inherited from interface org.activemq.store.MessageStore |
|---|
addMessage, getMessage, recover, removeAllMessages, removeMessage |
| Methods inherited from interface org.activemq.service.Service |
|---|
start, stop |
| Method Detail |
|---|
void incrementMessageCount(MessageIdentity messageId)
throws JMSException
messageId -
JMSException
void decrementMessageCountAndMaybeDelete(MessageIdentity msgId)
throws JMSException
msgId -
JMSException
void setLastAcknowledgedMessageIdentity(String subscription,
MessageIdentity messageIdentity)
throws JMSException
subscriptionPersistentId - messageIdentity -
JMSException
void deleteSubscription(String subscription)
throws JMSException
sub -
JMSException
void recoverSubscription(String subscriptionId,
MessageIdentity lastDispatchedMessage,
RecoveryListener listener)
throws JMSException
subscription - lastDispatchedMessage -
JMSException
MessageIdentity getLastestMessageIdentity()
throws JMSException
JMSException
SubscriberEntry getSubscriberEntry(ConsumerInfo info)
throws JMSException
info -
JMSException
void setSubscriberEntry(ConsumerInfo info,
SubscriberEntry subscriberEntry)
throws JMSException
info - subscriberEntry -
JMSException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||