diff options
| author | Andrew Stitcher <astitcher@apache.org> | 2009-01-13 19:08:29 +0000 |
|---|---|---|
| committer | Andrew Stitcher <astitcher@apache.org> | 2009-01-13 19:08:29 +0000 |
| commit | 5fec8f487c510e2309b3bc939fea70078a11af97 (patch) | |
| tree | f875a150066a08094eba72856de99e471185a0aa /cpp/src/qpid/broker/ConnectionState.h | |
| parent | 77bde150020c6c34130523f528d739c264aa12e3 (diff) | |
| download | qpid-python-5fec8f487c510e2309b3bc939fea70078a11af97.tar.gz | |
Send heartbeat from broker to client
- Server sends possible heartbeat range and client replies with desired
heartbeat as part of the tune-tuneOk exchange
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@734220 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/broker/ConnectionState.h')
| -rw-r--r-- | cpp/src/qpid/broker/ConnectionState.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cpp/src/qpid/broker/ConnectionState.h b/cpp/src/qpid/broker/ConnectionState.h index fd69157dbd..53591dc40a 100644 --- a/cpp/src/qpid/broker/ConnectionState.h +++ b/cpp/src/qpid/broker/ConnectionState.h @@ -44,6 +44,7 @@ class ConnectionState : public ConnectionToken, public management::Manageable outputTasks(out), framemax(65535), heartbeat(0), + heartbeatmax(120), stagingThreshold(broker.getStagingThreshold()), federationLink(true) {} @@ -54,10 +55,12 @@ class ConnectionState : public ConnectionToken, public management::Manageable uint32_t getFrameMax() const { return framemax; } uint16_t getHeartbeat() const { return heartbeat; } + uint16_t getHeartbeatMax() const { return heartbeatmax; } uint64_t getStagingThreshold() const { return stagingThreshold; } void setFrameMax(uint32_t fm) { framemax = fm; } void setHeartbeat(uint16_t hb) { heartbeat = hb; } + void setHeartbeatMax(uint16_t hbm) { heartbeatmax = hbm; } void setStagingThreshold(uint64_t st) { stagingThreshold = st; } virtual void setUserId(const string& uid) { userId = uid; } @@ -88,6 +91,7 @@ class ConnectionState : public ConnectionToken, public management::Manageable framing::ProtocolVersion version; uint32_t framemax; uint16_t heartbeat; + uint16_t heartbeatmax; uint64_t stagingThreshold; string userId; string url; |
