|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.activemq.store.vm.VMMessageStore
org.activemq.store.vm.VMTopicMessageStore
Field Summary |
Fields inherited from class org.activemq.store.vm.VMMessageStore |
lastMessageIdentity, messageTable |
Constructor Summary | |
VMTopicMessageStore()
|
|
VMTopicMessageStore(java.util.LinkedHashMap messageTable,
java.util.Map subscriberDatabase,
java.util.Map ackDatabase,
java.util.Map messageCounts)
|
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(java.lang.String sub)
|
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. |
protected static java.util.Map |
makeMap()
|
void |
recoverSubscription(java.lang.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(java.lang.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 |
void |
stop()
Called to shutdown the service |
Methods inherited from class org.activemq.store.vm.VMMessageStore |
addMessage, getMessage, recover, removeAllMessages, removeMessage, removeMessage, start |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.activemq.store.MessageStore |
addMessage, getMessage, recover, removeAllMessages, removeMessage |
Methods inherited from interface org.activemq.service.Service |
start |
Constructor Detail |
public VMTopicMessageStore()
public VMTopicMessageStore(java.util.LinkedHashMap messageTable, java.util.Map subscriberDatabase, java.util.Map ackDatabase, java.util.Map messageCounts)
Method Detail |
public void incrementMessageCount(MessageIdentity messageId) throws javax.jms.JMSException
TopicMessageStore
incrementMessageCount
in interface TopicMessageStore
messageId
-
javax.jms.JMSException
public void decrementMessageCountAndMaybeDelete(MessageIdentity msgId) throws javax.jms.JMSException
TopicMessageStore
decrementMessageCountAndMaybeDelete
in interface TopicMessageStore
msgId
-
javax.jms.JMSException
public void setLastAcknowledgedMessageIdentity(java.lang.String subscription, MessageIdentity messageIdentity) throws javax.jms.JMSException
TopicMessageStore
setLastAcknowledgedMessageIdentity
in interface TopicMessageStore
messageIdentity
-
javax.jms.JMSException
public void recoverSubscription(java.lang.String subscriptionId, MessageIdentity lastDispatchedMessage, RecoveryListener listener) throws javax.jms.JMSException
TopicMessageStore
recoverSubscription
in interface TopicMessageStore
lastDispatchedMessage
-
javax.jms.JMSException
public MessageIdentity getLastestMessageIdentity() throws javax.jms.JMSException
TopicMessageStore
getLastestMessageIdentity
in interface TopicMessageStore
javax.jms.JMSException
public SubscriberEntry getSubscriberEntry(ConsumerInfo info) throws javax.jms.JMSException
TopicMessageStore
getSubscriberEntry
in interface TopicMessageStore
info
-
javax.jms.JMSException
public void setSubscriberEntry(ConsumerInfo info, SubscriberEntry subscriberEntry) throws javax.jms.JMSException
TopicMessageStore
setSubscriberEntry
in interface TopicMessageStore
info
- subscriberEntry
-
javax.jms.JMSException
public void stop() throws javax.jms.JMSException
Service
stop
in interface Service
stop
in class VMMessageStore
javax.jms.JMSException
protected static java.util.Map makeMap()
public void deleteSubscription(java.lang.String sub)
deleteSubscription
in interface TopicMessageStore
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |