From 72bca07ee53fb9476f268133f244d55d8f53d3b9 Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Fri, 30 Mar 2007 15:50:07 +0000 Subject: Refactored the MessageStore interface to restrict visibility of broker core from store implementations. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@524139 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/lib/broker/BrokerMessage.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'qpid/cpp/lib/broker/BrokerMessage.h') diff --git a/qpid/cpp/lib/broker/BrokerMessage.h b/qpid/cpp/lib/broker/BrokerMessage.h index fcb104edbb..8b408ae669 100644 --- a/qpid/cpp/lib/broker/BrokerMessage.h +++ b/qpid/cpp/lib/broker/BrokerMessage.h @@ -53,7 +53,7 @@ using framing::string; class BasicMessage : public Message { boost::shared_ptr header; std::auto_ptr content; - sys::Mutex contentLock; + mutable sys::Mutex contentLock; uint64_t size; void sendContent(framing::ChannelAdapter&, uint32_t framesize); @@ -92,25 +92,25 @@ class BasicMessage : public Message { void decodeHeader(framing::Buffer& buffer); void decodeContent(framing::Buffer& buffer, uint32_t contentChunkSize = 0); - void encode(framing::Buffer& buffer); - void encodeHeader(framing::Buffer& buffer); - void encodeContent(framing::Buffer& buffer); + void encode(framing::Buffer& buffer) const; + void encodeHeader(framing::Buffer& buffer) const; + void encodeContent(framing::Buffer& buffer) const; /** * @returns the size of the buffer needed to encode this * message in its entirety */ - uint32_t encodedSize(); + uint32_t encodedSize() const; /** * @returns the size of the buffer needed to encode the * 'header' of this message (not just the header frame, * but other meta data e.g.routing key and exchange) */ - uint32_t encodedHeaderSize(); + uint32_t encodedHeaderSize() const; /** * @returns the size of the buffer needed to encode the * (possibly partial) content held by this message */ - uint32_t encodedContentSize(); + uint32_t encodedContentSize() const; /** * Releases the in-memory content data held by this * message. Must pass in a store from which the data can -- cgit v1.2.1