|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.activemq.store.bdbn.BDbMessageStore
An implementation of MessageStore
using
native C Berkeley DB
Constructor Summary | |
BDbMessageStore()
|
Method Summary | |
MessageIdentity |
addMessage(ActiveMQMessage message)
Adds a message to the message store |
protected byte[] |
asBytes(ActiveMQMessage message)
|
protected byte[] |
asBytes(String messageID)
|
protected com.sleepycat.db.Dbt |
createKey(String messageID)
|
protected ActiveMQMessage |
extractMessage(com.sleepycat.db.Dbt value)
|
ActiveMQMessage |
getMessage(MessageIdentity identity)
Looks up a message using either the String messageID or the messageNumber. |
void |
recover(QueueMessageContainer container)
Recover any messages to be delivered onto the dispatch queue. |
void |
removeMessage(MessageIdentity identity,
MessageAck ack)
|
void |
setMessageContainer(MessageContainer container)
|
void |
start()
Called to start the service |
void |
stop()
Called to shutdown the service |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BDbMessageStore()
Method Detail |
public void setMessageContainer(MessageContainer container)
public MessageIdentity addMessage(ActiveMQMessage message) throws JMSException
MessageStore
addMessage
in interface MessageStore
JMSException
public ActiveMQMessage getMessage(MessageIdentity identity) throws JMSException
MessageStore
getMessage
in interface MessageStore
identity
- which contains either the messageID or the messageNumber
JMSException
public void removeMessage(MessageIdentity identity, MessageAck ack) throws JMSException
removeMessage
in interface MessageStore
JMSException
public void recover(QueueMessageContainer container) throws JMSException
MessageStore
recover
in interface MessageStore
container
-
JMSException
public void start() throws JMSException
Service
start
in interface Service
JMSException
public void stop() throws JMSException
Service
stop
in interface Service
JMSException
protected com.sleepycat.db.Dbt createKey(String messageID)
protected ActiveMQMessage extractMessage(com.sleepycat.db.Dbt value) throws IOException
IOException
protected byte[] asBytes(ActiveMQMessage message) throws IOException, JMSException
IOException
JMSException
protected byte[] asBytes(String messageID)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |