diff options
| author | Alan Conway <aconway@apache.org> | 2009-02-09 22:25:26 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2009-02-09 22:25:26 +0000 |
| commit | 3a60db0672b78a75c52f39f5cefeeb00d3eeba97 (patch) | |
| tree | 3f9c211e3649a3ef8a883e95d741387cf402dd17 /cpp/src/qpid/framing/AMQFrame.h | |
| parent | c9a654925355a4dd128d5111af862e8be89e0a45 (diff) | |
| download | qpid-python-3a60db0672b78a75c52f39f5cefeeb00d3eeba97.tar.gz | |
Cluster support for message time-to-live.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@742774 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/framing/AMQFrame.h')
| -rw-r--r-- | cpp/src/qpid/framing/AMQFrame.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cpp/src/qpid/framing/AMQFrame.h b/cpp/src/qpid/framing/AMQFrame.h index 02a1ea4622..028d0c1d8a 100644 --- a/cpp/src/qpid/framing/AMQFrame.h +++ b/cpp/src/qpid/framing/AMQFrame.h @@ -92,6 +92,9 @@ class AMQFrame : public AMQDataBlock, public sys::LatencyMetricTimestamp /** Must point to at least DECODE_SIZE_MIN bytes of data */ static uint16_t decodeSize(char* data); + uint64_t getClusterId() const { return clusterId; } + void setClusterId(uint64_t id) { clusterId = id; } + private: void init(); @@ -103,6 +106,7 @@ class AMQFrame : public AMQDataBlock, public sys::LatencyMetricTimestamp bool bos : 1; bool eos : 1; mutable uint32_t encodedSizeCache; + uint64_t clusterId; // Used to identify frames in a clustered broekr. }; std::ostream& operator<<(std::ostream&, const AMQFrame&); |
