diff options
Diffstat (limited to 'qpid/cpp/src/qpid/ha/RemoteBackup.h')
-rw-r--r-- | qpid/cpp/src/qpid/ha/RemoteBackup.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/qpid/cpp/src/qpid/ha/RemoteBackup.h b/qpid/cpp/src/qpid/ha/RemoteBackup.h index 3cc18bcd1b..99e5a24494 100644 --- a/qpid/cpp/src/qpid/ha/RemoteBackup.h +++ b/qpid/cpp/src/qpid/ha/RemoteBackup.h @@ -57,8 +57,10 @@ class RemoteBackup RemoteBackup(const BrokerInfo& info, ReplicationTest, bool connected); ~RemoteBackup(); - /** Create initial guards for all the replicated queues in the registry. */ - void createGuards(broker::QueueRegistry&); + /** Set the initial queues for all queues in the registry. + *@createGuards if true create guards also, if false guards will be created on demand. + */ + void setInitialQueues(broker::QueueRegistry&, bool createGuards); /** Return guard associated with a queue. Used to create ReplicatingSubscription. */ GuardPtr guard(const QueuePtr&); @@ -90,7 +92,7 @@ class RemoteBackup typedef std::set<QueuePtr> QueueSet; /** Add queue to guard as an initial queue */ - void initialQueue(const QueuePtr&); + void initialQueue(const QueuePtr&, bool createGuard); std::string logPrefix; BrokerInfo brokerInfo; |