|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.activemq.store.jdbm.JdbmMessageStore
org.codehaus.activemq.store.jdbm.JdbmTopicMessageStore
Constructor Summary | |
JdbmTopicMessageStore(jdbm.btree.BTree messageTable,
jdbm.btree.BTree orderedIndex,
jdbm.btree.BTree ackDatabase,
jdbm.btree.BTree subscriberDetails,
jdbm.btree.BTree messageCounts)
|
Method Summary | |
void |
decrementMessageCountAndMaybeDelete(MessageIdentity messageIdentity,
MessageAck ack)
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) |
protected jdbm.btree.BTree |
getAckDatabase()
|
protected MessageIdentity |
getLastAcknowledgedMessageIdentity(Subscription 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. |
protected jdbm.btree.BTree |
getMessageCounts()
|
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(Subscription subscription,
MessageIdentity lastDispatchedMessage)
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(Subscription 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.codehaus.activemq.store.jdbm.JdbmMessageStore |
addMessage, closeTable, findSequenceNumber, getContainer, getLastSequenceNumber, getMessage, getMessageBySequenceNumber, getMessageTable, getOrderedIndex, recover, removeMessage, setMessageContainer, start |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.codehaus.activemq.store.TopicMessageStore |
setMessageContainer |
Methods inherited from interface org.codehaus.activemq.store.MessageStore |
addMessage, getMessage, recover, removeMessage |
Methods inherited from interface org.codehaus.activemq.service.Service |
start |
Constructor Detail |
public JdbmTopicMessageStore(jdbm.btree.BTree messageTable, jdbm.btree.BTree orderedIndex, jdbm.btree.BTree ackDatabase, jdbm.btree.BTree subscriberDetails, jdbm.btree.BTree messageCounts)
Method Detail |
public void incrementMessageCount(MessageIdentity messageId) throws JMSException
TopicMessageStore
incrementMessageCount
in interface TopicMessageStore
messageId
-
JMSException
public void decrementMessageCountAndMaybeDelete(MessageIdentity messageIdentity, MessageAck ack) throws JMSException
TopicMessageStore
decrementMessageCountAndMaybeDelete
in interface TopicMessageStore
messageIdentity
- ack
-
JMSException
public void setLastAcknowledgedMessageIdentity(Subscription subscription, MessageIdentity messageIdentity) throws JMSException
TopicMessageStore
setLastAcknowledgedMessageIdentity
in interface TopicMessageStore
subscription
- messageIdentity
-
JMSException
public void recoverSubscription(Subscription subscription, MessageIdentity lastDispatchedMessage) throws JMSException
TopicMessageStore
recoverSubscription
in interface TopicMessageStore
subscription
- lastDispatchedMessage
-
JMSException
public MessageIdentity getLastestMessageIdentity() throws JMSException
TopicMessageStore
getLastestMessageIdentity
in interface TopicMessageStore
JMSException
public SubscriberEntry getSubscriberEntry(ConsumerInfo info) throws JMSException
TopicMessageStore
getSubscriberEntry
in interface TopicMessageStore
info
-
JMSException
public void setSubscriberEntry(ConsumerInfo info, SubscriberEntry subscriberEntry) throws JMSException
TopicMessageStore
setSubscriberEntry
in interface TopicMessageStore
info
- subscriberEntry
-
JMSException
public void stop() throws JMSException
Service
stop
in interface Service
stop
in class JdbmMessageStore
JMSException
protected jdbm.btree.BTree getMessageCounts() throws AlreadyClosedException
AlreadyClosedException
protected jdbm.btree.BTree getAckDatabase() throws AlreadyClosedException
AlreadyClosedException
protected MessageIdentity getLastAcknowledgedMessageIdentity(Subscription subscription) throws IOException, AlreadyClosedException
IOException
AlreadyClosedException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |