|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.activemq.store.memory.MemoryPersistenceAdapter
public class MemoryPersistenceAdapter
Constructor Summary | |
---|---|
MemoryPersistenceAdapter()
|
Method Summary | |
---|---|
protected MemoryMessageStore |
asMemoryMessageStore(Object value)
|
void |
beginTransaction(ConnectionContext context)
This method starts a transaction on the persistent storage - which is nothing to do with JMS or XA transactions - its purely a mechanism to perform multiple writes to a persistent store in 1 transaction as a performance optimization. |
void |
commitTransaction(ConnectionContext context)
Commit a persistence transaction |
MessageStore |
createQueueMessageStore(ActiveMQQueue destination)
Factory method to create a new queue message store with the given destination name |
TopicMessageStore |
createTopicMessageStore(ActiveMQTopic destination)
Factory method to create a new topic message store with the given destination name |
TransactionStore |
createTransactionStore()
Factory method to create a new persistent prepared transaction store for XA recovery |
void |
deleteAllMessages()
Delete's all the messages in the persistent store. |
Set |
getDestinations()
Returns a set of all the ActiveMQDestination
objects that the persistence store is aware exist. |
long |
getLastMessageBrokerSequenceId()
|
boolean |
isUseExternalMessageReferences()
|
static MemoryPersistenceAdapter |
newInstance(File file)
|
void |
rollbackTransaction(ConnectionContext context)
Rollback a persistence transaction |
void |
setUsageManager(UsageManager usageManager)
|
void |
setUseExternalMessageReferences(boolean useExternalMessageReferences)
|
void |
start()
|
void |
stop()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MemoryPersistenceAdapter()
Method Detail |
---|
public Set getDestinations()
PersistenceAdapter
ActiveMQDestination
objects that the persistence store is aware exist.
getDestinations
in interface PersistenceAdapter
public static MemoryPersistenceAdapter newInstance(File file)
public MessageStore createQueueMessageStore(ActiveMQQueue destination) throws IOException
PersistenceAdapter
createQueueMessageStore
in interface PersistenceAdapter
IOException
public TopicMessageStore createTopicMessageStore(ActiveMQTopic destination) throws IOException
PersistenceAdapter
createTopicMessageStore
in interface PersistenceAdapter
IOException
public TransactionStore createTransactionStore() throws IOException
PersistenceAdapter
createTransactionStore
in interface PersistenceAdapter
IOException
public void beginTransaction(ConnectionContext context)
PersistenceAdapter
beginTransaction
in interface PersistenceAdapter
public void commitTransaction(ConnectionContext context)
PersistenceAdapter
commitTransaction
in interface PersistenceAdapter
PersistenceAdapter#beginTransaction()
public void rollbackTransaction(ConnectionContext context)
PersistenceAdapter
rollbackTransaction
in interface PersistenceAdapter
PersistenceAdapter#beginTransaction()
public void start() throws Exception
start
in interface Service
Exception
public void stop() throws Exception
stop
in interface Service
Exception
public long getLastMessageBrokerSequenceId() throws IOException
getLastMessageBrokerSequenceId
in interface PersistenceAdapter
IOException
public void deleteAllMessages() throws IOException
PersistenceAdapter
deleteAllMessages
in interface PersistenceAdapter
IOException
public boolean isUseExternalMessageReferences()
isUseExternalMessageReferences
in interface PersistenceAdapter
public void setUseExternalMessageReferences(boolean useExternalMessageReferences)
setUseExternalMessageReferences
in interface PersistenceAdapter
protected MemoryMessageStore asMemoryMessageStore(Object value)
public void setUsageManager(UsageManager usageManager)
setUsageManager
in interface PersistenceAdapter
usageManager
- The UsageManager that is controlling the broker's memory usage.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |