summaryrefslogtreecommitdiff
path: root/cpp/broker/inc/Message.h
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2006-10-10 10:06:36 +0000
committerGordon Sim <gsim@apache.org>2006-10-10 10:06:36 +0000
commit3a0eda85d85b3185d3fec6dec6700c6ca1fe3818 (patch)
treed4671a2fbb8ad69a0cc734134b43b28152c3e5b4 /cpp/broker/inc/Message.h
parent14654e5360b72adf1704838b3820c7d1fc860e8e (diff)
downloadqpid-python-3a0eda85d85b3185d3fec6dec6700c6ca1fe3818.tar.gz
Implementation and tests for basic_qos (i.e. prefetching)
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@454677 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/broker/inc/Message.h')
-rw-r--r--cpp/broker/inc/Message.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/cpp/broker/inc/Message.h b/cpp/broker/inc/Message.h
index 8b3321c2dc..7b2c2bc848 100644
--- a/cpp/broker/inc/Message.h
+++ b/cpp/broker/inc/Message.h
@@ -47,8 +47,7 @@ namespace qpid {
bool redelivered;
qpid::framing::AMQHeaderBody::shared_ptr header;
content_list content;
-
- u_int64_t contentSize();
+ u_int64_t size;
public:
typedef std::tr1::shared_ptr<Message> shared_ptr;
@@ -70,6 +69,8 @@ namespace qpid {
qpid::framing::BasicHeaderProperties* getHeaderProperties();
const string& getRoutingKey() const { return routingKey; }
const string& getExchange() const { return exchange; }
+ u_int64_t contentSize() const{ return size; }
+
};
}
}