diff options
author | Alan Conway <aconway@apache.org> | 2007-02-07 10:13:41 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2007-02-07 10:13:41 +0000 |
commit | 1977153241e86e93b237d2ed7fe02883d44646c5 (patch) | |
tree | 68ea88d60712a2459b524add42e412f4ae8ce9b6 /cpp/lib/broker/BrokerMessage.cpp | |
parent | 877e7ae368d4320bd60ba5750be207a5cac13f43 (diff) | |
download | qpid-python-1977153241e86e93b237d2ed7fe02883d44646c5.tar.gz |
* broker/BrokerMessage.cpp: Added ConnectionToken publisher.
* cpp/lib/broker/BrokerMessageMessage.cpp:
- Added ConnectionToken publisher.
- Implemented getDeliveryMode, getApplicationHeaders
* cpp/lib/broker/Reference.cpp: Holds MessageMessage instead of just
MessageTransferBody.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/qpid.0-9@504485 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/lib/broker/BrokerMessage.cpp')
-rw-r--r-- | cpp/lib/broker/BrokerMessage.cpp | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/cpp/lib/broker/BrokerMessage.cpp b/cpp/lib/broker/BrokerMessage.cpp index 43a22ab6b9..d232efff16 100644 --- a/cpp/lib/broker/BrokerMessage.cpp +++ b/cpp/lib/broker/BrokerMessage.cpp @@ -41,11 +41,10 @@ BasicMessage::BasicMessage( const string& _exchange, const string& _routingKey, bool _mandatory, bool _immediate, framing::AMQMethodBody::shared_ptr respondTo ) : - Message(_exchange, _routingKey, _mandatory, _immediate, respondTo), - publisher(_publisher), + Message(_publisher, _exchange, _routingKey, _mandatory, + _immediate, respondTo), size(0) -{ -} +{} // FIXME aconway 2007-02-01: remove. // BasicMessage::BasicMessage(Buffer& buffer, bool headersOnly, u_int32_t contentChunkSize) : @@ -56,7 +55,7 @@ BasicMessage::BasicMessage( // } // For tests only. -BasicMessage::BasicMessage() : publisher(0), size(0) +BasicMessage::BasicMessage() : size(0) {} BasicMessage::~BasicMessage(){ @@ -126,10 +125,6 @@ const FieldTable& BasicMessage::getApplicationHeaders(){ return getHeaderProperties()->getHeaders(); } -const ConnectionToken* const BasicMessage::getPublisher(){ - return publisher; -} - bool BasicMessage::isPersistent() { if(!header) return false; @@ -230,12 +225,14 @@ void BasicMessage::releaseContent(MessageStore* store) store->stage(this); } if (!content.get() || content->size() > 0) { + // FIXME aconway 2007-02-07: handle MessageMessage. //set content to lazy loading mode (but only if there is stored content): //Note: the LazyLoadedContent instance contains a raw pointer to the message, however it is // then set as a member of that message so its lifetime is guaranteed to be no longer than // that of the message itself - content = std::auto_ptr<Content>(new LazyLoadedContent(store, this, expectedContentSize())); + content = std::auto_ptr<Content>( + new LazyLoadedContent(store, this, expectedContentSize())); } } |