|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MessageStore
Method Summary | |
---|---|
void |
abortTran()
|
void |
beginTran()
|
void |
close()
Called to close and cleanup any resources used by the message store. |
void |
commitTran()
|
void |
configure(QueueRegistry queueRegistry,
java.lang.String base,
org.apache.commons.configuration.Configuration config)
Called after instantiation in order to configure the message store. |
void |
createQueue(AMQQueue queue)
|
java.util.List<AMQQueue> |
createQueues()
Recreate all queues that were persisted, including re-enqueuing of existing messages |
void |
dequeueMessage(java.lang.String name,
long messageId)
|
void |
enqueueMessage(java.lang.String name,
long messageId)
|
long |
getNewMessageId()
Return a valid, currently unused message id. |
boolean |
inTran()
|
void |
put(AMQMessage msg)
|
void |
removeMessage(long messageId)
|
void |
removeQueue(java.lang.String name)
|
Method Detail |
---|
void configure(QueueRegistry queueRegistry, java.lang.String base, org.apache.commons.configuration.Configuration config) throws java.lang.Exception
queueRegistry
- the registry of queues to be used by this storebase
- the base element identifier from which all configuration items are relative. For example, if the base
element is "store", the all elements used by concrete classes will be "store.foo" etc.config
- the apache commons configuration object
java.lang.Exception
void close() throws java.lang.Exception
java.lang.Exception
void put(AMQMessage msg) throws org.apache.qpid.AMQException
org.apache.qpid.AMQException
void removeMessage(long messageId) throws org.apache.qpid.AMQException
org.apache.qpid.AMQException
void createQueue(AMQQueue queue) throws org.apache.qpid.AMQException
org.apache.qpid.AMQException
void removeQueue(java.lang.String name) throws org.apache.qpid.AMQException
org.apache.qpid.AMQException
void enqueueMessage(java.lang.String name, long messageId) throws org.apache.qpid.AMQException
org.apache.qpid.AMQException
void dequeueMessage(java.lang.String name, long messageId) throws org.apache.qpid.AMQException
org.apache.qpid.AMQException
void beginTran() throws org.apache.qpid.AMQException
org.apache.qpid.AMQException
void commitTran() throws org.apache.qpid.AMQException
org.apache.qpid.AMQException
void abortTran() throws org.apache.qpid.AMQException
org.apache.qpid.AMQException
boolean inTran()
java.util.List<AMQQueue> createQueues() throws org.apache.qpid.AMQException
org.apache.qpid.AMQException
long getNewMessageId()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |