diff options
| author | Alan Conway <aconway@apache.org> | 2008-06-09 20:55:09 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2008-06-09 20:55:09 +0000 |
| commit | 03a39d920d010b29b156a99ee9b3fcfc7c7c64a1 (patch) | |
| tree | 0959d63de389bd08fcb5d074eb5a0712a1db24a8 /cpp/src/qpid/client/Message.h | |
| parent | 31a74cd4a5c849b134a172cc5e6ce2e2a447e5e5 (diff) | |
| download | qpid-python-03a39d920d010b29b156a99ee9b3fcfc7c7c64a1.tar.gz | |
Updated doxygen comments in qpid/client/*.h
Changed request-response example to use SubscriptionManager like the others.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@665891 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/client/Message.h')
| -rw-r--r-- | cpp/src/qpid/client/Message.h | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/cpp/src/qpid/client/Message.h b/cpp/src/qpid/client/Message.h index 3c22d202ee..4e6ed49bb4 100644 --- a/cpp/src/qpid/client/Message.h +++ b/cpp/src/qpid/client/Message.h @@ -30,26 +30,48 @@ namespace qpid { namespace client { /** - * A representation of messages sent or received through the - * client api. + * A message sent to or received from the broker. * * \ingroup clientapi */ class Message : public framing::TransferContent { public: + /** Create a Message. + *@param data Data for the message body. + *@param routingKey Passed to the exchange that routes the message. + *@param exchange Name of the exchange that should route the message. + */ Message(const std::string& data=std::string(), const std::string& routingKey=std::string(), const std::string& exchange=std::string()); + + /** The destination of messages sent to the broker is the exchange + * name. The destination of messages received from the broker is + * the delivery tag identifyig the local subscription (often this + * is the name of the subscribed queue.) + */ std::string getDestination() const; + + /** Check the redelivered flag. */ bool isRedelivered() const; + /** Set the redelivered flag. */ void setRedelivered(bool redelivered); + + /** Get a modifyable reference to the message headers. */ framing::FieldTable& getHeaders(); + + /** Get a non-modifyable reference to the message headers. */ + const framing::FieldTable& getHeaders() const; + + ///@internal const framing::MessageTransferBody& getMethod() const; + ///@internal const framing::SequenceNumber& getId() const; /**@internal for incoming messages */ Message(const framing::FrameSet& frameset); + private: //method and id are only set for received messages: framing::MessageTransferBody method; |
