diff options
| author | Alan Conway <aconway@apache.org> | 2008-12-09 20:08:47 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2008-12-09 20:08:47 +0000 |
| commit | 854d7472c441248cefa783a34606c5ba8bf053ec (patch) | |
| tree | 404ac91e8412032112db368175c61fe1b97942f5 /cpp/src/qpid/cluster/Cluster.h | |
| parent | f2bec6c366dc14c9a24dd753adaf798503e87e2e (diff) | |
| download | qpid-python-854d7472c441248cefa783a34606c5ba8bf053ec.tar.gz | |
Cluster: Option --cluster-read-max configures read-to-redeliver flow-control.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@724857 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/cluster/Cluster.h')
| -rw-r--r-- | cpp/src/qpid/cluster/Cluster.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/cpp/src/qpid/cluster/Cluster.h b/cpp/src/qpid/cluster/Cluster.h index 2ab2da6fa8..e172a0f180 100644 --- a/cpp/src/qpid/cluster/Cluster.h +++ b/cpp/src/qpid/cluster/Cluster.h @@ -64,11 +64,9 @@ class Cluster : private Cpg::Handler, public management::Manageable { typedef std::vector<ConnectionPtr> Connections; /** - * Join a cluster. - * @param name of the cluster. - * @param url of this broker, sent to the cluster. + * Join a cluster. */ - Cluster(const std::string& name, const Url& url, broker::Broker&, bool useQuorum); + Cluster(const std::string& name, const Url& url, broker::Broker&, bool useQuorum, size_t readMax); virtual ~Cluster(); @@ -95,6 +93,8 @@ class Cluster : private Cpg::Handler, public management::Manageable { boost::function<bool ()> isQuorate; void checkQuorum(); + + size_t getReadMax() { return readMax; } private: typedef sys::LockPtr<Cluster,sys::Monitor> LockPtr; @@ -215,6 +215,7 @@ class Cluster : private Cpg::Handler, public management::Manageable { boost::shared_ptr<FailoverExchange> failoverExchange; Quorum quorum; + size_t readMax; friend std::ostream& operator<<(std::ostream&, const Cluster&); friend class ClusterDispatcher; |
