summaryrefslogtreecommitdiff
path: root/cpp/lib/broker/Broker.h
diff options
context:
space:
mode:
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);
};
}}