diff options
Diffstat (limited to 'cpp/src/qpid/messaging')
-rw-r--r-- | cpp/src/qpid/messaging/Message.cpp | 10 | ||||
-rw-r--r-- | cpp/src/qpid/messaging/MessageImpl.cpp | 2 | ||||
-rw-r--r-- | cpp/src/qpid/messaging/MessageImpl.h | 1 |
3 files changed, 10 insertions, 3 deletions
diff --git a/cpp/src/qpid/messaging/Message.cpp b/cpp/src/qpid/messaging/Message.cpp index 822659f6ef..84245b7296 100644 --- a/cpp/src/qpid/messaging/Message.cpp +++ b/cpp/src/qpid/messaging/Message.cpp @@ -52,16 +52,20 @@ const std::string& Message::getUserId() const { return impl->userId; } void Message::setCorrelationId(const std::string& id) { impl->correlationId = id; } const std::string& Message::getCorrelationId() const { return impl->correlationId; } +uint8_t Message::getPriority() const { return impl->priority; } +void Message::setPriority(uint8_t priority) { impl->priority = priority; } + void Message::setTtl(Duration ttl) { impl->ttl = ttl.getMilliseconds(); } Duration Message::getTtl() const { return Duration(impl->ttl); } void Message::setDurable(bool durable) { impl->durable = durable; } bool Message::getDurable() const { return impl->durable; } -bool Message::isRedelivered() const { return impl->redelivered; } +bool Message::getRedelivered() const { return impl->redelivered; } +void Message::setRedelivered(bool redelivered) { impl->redelivered = redelivered; } -const VariantMap& Message::getHeaders() const { return impl->getHeaders(); } -VariantMap& Message::getHeaders() { return impl->getHeaders(); } +const VariantMap& Message::getProperties() const { return impl->getHeaders(); } +VariantMap& Message::getProperties() { return impl->getHeaders(); } void Message::setContent(const std::string& c) { impl->setBytes(c); } void Message::setContent(const char* chars, size_t count) { impl->setBytes(chars, count); } diff --git a/cpp/src/qpid/messaging/MessageImpl.cpp b/cpp/src/qpid/messaging/MessageImpl.cpp index 5f8ac20551..dea6681244 100644 --- a/cpp/src/qpid/messaging/MessageImpl.cpp +++ b/cpp/src/qpid/messaging/MessageImpl.cpp @@ -31,12 +31,14 @@ const std::string EMPTY_STRING = ""; using namespace qpid::types; MessageImpl::MessageImpl(const std::string& c) : + priority(0), ttl(0), durable(false), redelivered(false), bytes(c), internalId(0) {} MessageImpl::MessageImpl(const char* chars, size_t count) : + priority(0), ttl(0), durable (false), redelivered(false), diff --git a/cpp/src/qpid/messaging/MessageImpl.h b/cpp/src/qpid/messaging/MessageImpl.h index 3898ff9f98..7793fc7943 100644 --- a/cpp/src/qpid/messaging/MessageImpl.h +++ b/cpp/src/qpid/messaging/MessageImpl.h @@ -36,6 +36,7 @@ struct MessageImpl std::string messageId; std::string userId; std::string correlationId; + uint8_t priority; uint64_t ttl; bool durable; bool redelivered; |