summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/cluster/Cluster.h
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2009-03-09 17:03:40 +0000
committerAlan Conway <aconway@apache.org>2009-03-09 17:03:40 +0000
commitfaae42761fe83f083d408d2b4f9e95b7c619122e (patch)
tree21013d3445ce52650c9c1a2e8859dd0d931b0f09 /cpp/src/qpid/cluster/Cluster.h
parentbbbd455d8053d3fea713d8f04b0187ac73c72d83 (diff)
downloadqpid-python-faae42761fe83f083d408d2b4f9e95b7c619122e.tar.gz
Fix cluster TTL: replicte expiry information to newcomers.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@751760 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/cluster/Cluster.h')
-rw-r--r--cpp/src/qpid/cluster/Cluster.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/cpp/src/qpid/cluster/Cluster.h b/cpp/src/qpid/cluster/Cluster.h
index 5e66db0097..b716e2d781 100644
--- a/cpp/src/qpid/cluster/Cluster.h
+++ b/cpp/src/qpid/cluster/Cluster.h
@@ -92,7 +92,7 @@ class Cluster : private Cpg::Handler, public management::Manageable {
void leave();
// Update completed - called in update thread
- void updateInDone(const ClusterMap&, uint64_t frameId);
+ void updateInDone(const ClusterMap&);
MemberId getId() const;
broker::Broker& getBroker() const;
@@ -108,6 +108,8 @@ class Cluster : private Cpg::Handler, public management::Manageable {
// Called only during update by Connection::shadowReady
Decoder& getDecoder() { return decoder; }
+ ExpiryPolicy& getExpiryPolicy() { return *expiryPolicy; }
+
private:
typedef sys::Monitor::ScopedLock Lock;
@@ -115,8 +117,6 @@ class Cluster : private Cpg::Handler, public management::Manageable {
typedef PollableQueue<EventFrame> PollableFrameQueue;
typedef std::map<ConnectionId, ConnectionPtr> ConnectionMap;
- // FIXME aconway 2009-03-07: sort functions by thread
-
// NB: A dummy Lock& parameter marks functions that must only be
// called with Cluster::lock locked.
@@ -237,7 +237,6 @@ class Cluster : private Cpg::Handler, public management::Manageable {
} state;
ConnectionMap connections;
- uint64_t frameId;
ClusterMap map;
ClusterMap::Set elders;
size_t lastSize;