diff options
author | Gordon Sim <gsim@apache.org> | 2007-03-30 15:50:07 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2007-03-30 15:50:07 +0000 |
commit | 33d8343d134a391fa7d0a338fafad1a22ff58dc3 (patch) | |
tree | 7c8b9ef3ea62852eb38548be87f908b2892e12a2 /cpp/lib/broker/BrokerMessage.h | |
parent | 8fc571ee337add8f2c4ab1f1ebc0c4784c58e2bf (diff) | |
download | qpid-python-33d8343d134a391fa7d0a338fafad1a22ff58dc3.tar.gz |
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/qpid@524139 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/lib/broker/BrokerMessage.h')
-rw-r--r-- | cpp/lib/broker/BrokerMessage.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/cpp/lib/broker/BrokerMessage.h b/cpp/lib/broker/BrokerMessage.h index fcb104edbb..8b408ae669 100644 --- a/cpp/lib/broker/BrokerMessage.h +++ b/cpp/lib/broker/BrokerMessage.h @@ -53,7 +53,7 @@ using framing::string; class BasicMessage : public Message { boost::shared_ptr<framing::AMQHeaderBody> header; std::auto_ptr<Content> 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 |