java.lang.Object
org.activemq.store.vm.VMMessageStore
- All Implemented Interfaces:
- org.activemq.store.MessageStore, org.activemq.service.Service
- Direct Known Subclasses:
- VMTopicMessageStore
- public class VMMessageStore
- extends java.lang.Object
- implements org.activemq.store.MessageStore
An implementation of org.activemq.store.MessageStore which uses a
- Version:
- $Revision: 1.1.1.1 $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
messageTable
protected java.util.Map messageTable
lastMessageIdentity
protected org.activemq.service.MessageIdentity lastMessageIdentity
VMMessageStore
public VMMessageStore()
VMMessageStore
public VMMessageStore(java.util.LinkedHashMap messageTable)
addMessage
public void addMessage(org.activemq.message.ActiveMQMessage message)
throws javax.jms.JMSException
- Description copied from interface:
org.activemq.store.MessageStore
- Adds a message to the message store
- Specified by:
addMessage in interface org.activemq.store.MessageStore
getMessage
public org.activemq.message.ActiveMQMessage getMessage(org.activemq.service.MessageIdentity identity)
throws javax.jms.JMSException
- Description copied from interface:
org.activemq.store.MessageStore
- Looks up a message using either the String messageID or
the messageNumber. Implementations are encouraged to fill in the missing
key if its easy to do so.
- Specified by:
getMessage in interface org.activemq.store.MessageStore
removeMessage
public void removeMessage(org.activemq.message.MessageAck ack)
throws javax.jms.JMSException
- Description copied from interface:
org.activemq.store.MessageStore
- Removes a message from the message store.
- Specified by:
removeMessage in interface org.activemq.store.MessageStore
removeMessage
public void removeMessage(org.activemq.service.MessageIdentity msgId)
throws javax.jms.JMSException
recover
public void recover(org.activemq.store.RecoveryListener listener)
throws javax.jms.JMSException
- Description copied from interface:
org.activemq.store.MessageStore
- Recover any messages to be delivered.
- Specified by:
recover in interface org.activemq.store.MessageStore
start
public void start()
throws javax.jms.JMSException
- Description copied from interface:
org.activemq.service.Service
- Called to start the service
- Specified by:
start in interface org.activemq.service.Service
stop
public void stop()
throws javax.jms.JMSException
- Description copied from interface:
org.activemq.service.Service
- Called to shutdown the service
- Specified by:
stop in interface org.activemq.service.Service
removeAllMessages
public void removeAllMessages()
throws javax.jms.JMSException
- Description copied from interface:
org.activemq.store.MessageStore
- Removes all the messages from the message store.
- Specified by:
removeAllMessages in interface org.activemq.store.MessageStore