|
||||||||||
| 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(java.lang.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. |
java.util.Set |
getDestinations()
Returns a set of all the ActiveMQDestination
objects that the persistence store is aware exist. |
long |
getLastMessageBrokerSequenceId()
|
boolean |
isUseExternalMessageReferences()
|
static MemoryPersistenceAdapter |
newInstance(java.io.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 java.util.Set getDestinations()
PersistenceAdapterActiveMQDestination
objects that the persistence store is aware exist.
getDestinations in interface PersistenceAdapterpublic static MemoryPersistenceAdapter newInstance(java.io.File file)
public MessageStore createQueueMessageStore(ActiveMQQueue destination)
throws java.io.IOException
PersistenceAdapter
createQueueMessageStore in interface PersistenceAdapterjava.io.IOException
public TopicMessageStore createTopicMessageStore(ActiveMQTopic destination)
throws java.io.IOException
PersistenceAdapter
createTopicMessageStore in interface PersistenceAdapterjava.io.IOException
public TransactionStore createTransactionStore()
throws java.io.IOException
PersistenceAdapter
createTransactionStore in interface PersistenceAdapterjava.io.IOExceptionpublic void beginTransaction(ConnectionContext context)
PersistenceAdapter
beginTransaction in interface PersistenceAdapterpublic void commitTransaction(ConnectionContext context)
PersistenceAdapter
commitTransaction in interface PersistenceAdapterPersistenceAdapter#beginTransaction()public void rollbackTransaction(ConnectionContext context)
PersistenceAdapter
rollbackTransaction in interface PersistenceAdapterPersistenceAdapter#beginTransaction()
public void start()
throws java.lang.Exception
start in interface Servicejava.lang.Exception
public void stop()
throws java.lang.Exception
stop in interface Servicejava.lang.Exception
public long getLastMessageBrokerSequenceId()
throws java.io.IOException
getLastMessageBrokerSequenceId in interface PersistenceAdapterjava.io.IOException
public void deleteAllMessages()
throws java.io.IOException
PersistenceAdapter
deleteAllMessages in interface PersistenceAdapterjava.io.IOExceptionpublic boolean isUseExternalMessageReferences()
isUseExternalMessageReferences in interface PersistenceAdapterpublic void setUseExternalMessageReferences(boolean useExternalMessageReferences)
setUseExternalMessageReferences in interface PersistenceAdapterprotected MemoryMessageStore asMemoryMessageStore(java.lang.Object value)
public void setUsageManager(UsageManager usageManager)
setUsageManager in interface PersistenceAdapterusageManager - 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 | |||||||||