summaryrefslogtreecommitdiff
path: root/cpp/lib/broker/Broker.h
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2007-03-21 16:01:45 +0000
committerGordon Sim <gsim@apache.org>2007-03-21 16:01:45 +0000
commitdf4faa062b3512312c78167bfbdf19ff969210ac (patch)
tree246a634754e2023df1692977fb9c347cba9795db /cpp/lib/broker/Broker.h
parent9f994dad07799d26e9ecc7241863e7c48c952c99 (diff)
downloadqpid-python-df4faa062b3512312c78167bfbdf19ff969210ac.tar.gz
Modifications to allow messages produced by the message class to be persisted as well as those from the basic class.
Fix to broker initialisation (ensure queues use the correct store). git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@520924 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/lib/broker/Broker.h')
-rw-r--r--cpp/lib/broker/Broker.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/cpp/lib/broker/Broker.h b/cpp/lib/broker/Broker.h
index 7c21e90b18..68c04336d8 100644
--- a/cpp/lib/broker/Broker.h
+++ b/cpp/lib/broker/Broker.h
@@ -90,13 +90,15 @@ class Broker : public sys::Runnable,
Configuration config;
sys::Acceptor::shared_ptr acceptor;
- std::auto_ptr<MessageStore> store;
+ const std::auto_ptr<MessageStore> store;
QueueRegistry queues;
ExchangeRegistry exchanges;
uint32_t timeout;
uint64_t stagingThreshold;
AutoDelete cleaner;
ConnectionFactory factory;
+
+ static MessageStore* createStore(const Configuration& config);
};
}}