org.codehaus.activemq.store.jdbc
Class JDBCMessageStore
java.lang.Object
org.codehaus.activemq.store.jdbc.JDBCMessageStore
- All Implemented Interfaces:
- MessageStore, Service
- Direct Known Subclasses:
- JDBCTopicMessageStore
- public class JDBCMessageStore
- extends java.lang.Object
- implements MessageStore
- Version:
- $Revision: 1.2 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
wireFormat
protected final WireFormat wireFormat
destinationName
protected final java.lang.String destinationName
sequenceGenerator
protected final SequenceGenerator sequenceGenerator
adapter
protected final JDBCAdapter adapter
JDBCMessageStore
public JDBCMessageStore(JDBCAdapter adapter,
WireFormat wireFormat,
java.lang.String destinationName)
addMessage
public MessageIdentity addMessage(ActiveMQMessage message)
throws JMSException
- Specified by:
addMessage
in interface MessageStore
- Throws:
JMSException
getMessage
public ActiveMQMessage getMessage(MessageIdentity identity)
throws JMSException
- Description copied from interface:
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 MessageStore
- Parameters:
identity
- which contains either the messageID or the messageNumber
- Returns:
- the message or null if it does not exist
- Throws:
JMSException
removeMessage
public void removeMessage(MessageIdentity identity,
MessageAck ack)
throws JMSException
- Specified by:
removeMessage
in interface MessageStore
- Throws:
JMSException
recover
public void recover(QueueMessageContainer container)
throws JMSException
- Description copied from interface:
MessageStore
- Recover any messages to be delivered onto the dispatch queue.
Only called when this store is used for durable queues.
- Specified by:
recover
in interface MessageStore
- Parameters:
container
-
- Throws:
JMSException
start
public void start()
throws JMSException
- Description copied from interface:
Service
- Called to start the service
- Specified by:
start
in interface Service
- Throws:
JMSException
stop
public void stop()
throws JMSException
- Description copied from interface:
Service
- Called to shutdown the service
- Specified by:
stop
in interface Service
- Throws:
JMSException
Copyright © 2004 Protique, Ltd.. All Rights Reserved.