diff options
author | Gordon Sim <gsim@apache.org> | 2013-07-10 13:47:05 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2013-07-10 13:47:05 +0000 |
commit | 28e1f71d646b9b0c86aba3bb0238acb0a89d45bd (patch) | |
tree | ce49b2ebe8e373cbc165de12b2f899fae19d02d4 /qpid/cpp/src/qpid/amqp | |
parent | eaa8c11396b13c46c59c2030a23cc7763ecee9d7 (diff) | |
download | qpid-python-28e1f71d646b9b0c86aba3bb0238acb0a89d45bd.tar.gz |
QPID-4976: support standard lifetime policies
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1501768 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/qpid/amqp')
-rw-r--r-- | qpid/cpp/src/qpid/amqp/descriptors.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/qpid/cpp/src/qpid/amqp/descriptors.h b/qpid/cpp/src/qpid/amqp/descriptors.h index 2a5691beaf..248d6df2df 100644 --- a/qpid/cpp/src/qpid/amqp/descriptors.h +++ b/qpid/cpp/src/qpid/amqp/descriptors.h @@ -89,6 +89,18 @@ const uint64_t SELECTOR_FILTER_CODE(0x0000468C00000004ULL); const uint64_t XQUERY_FILTER_CODE(0x0000468C00000005ULL); } +namespace lifetime_policy { +const std::string DELETE_ON_CLOSE_SYMBOL("amqp:delete-on-close:list"); +const std::string DELETE_ON_NO_LINKS_SYMBOL("amqp:delete-on-no-links:list"); +const std::string DELETE_ON_NO_MESSAGES_SYMBOL("amqp:delete-on-no-messages:list"); +const std::string DELETE_ON_NO_LINKS_OR_MESSAGES_SYMBOL("amqp:delete-on-no-links-or-messages:list"); + +const uint64_t DELETE_ON_CLOSE_CODE(0x2B); +const uint64_t DELETE_ON_NO_LINKS_CODE(0x2C); +const uint64_t DELETE_ON_NO_MESSAGES_CODE(0x2D); +const uint64_t DELETE_ON_NO_LINKS_OR_MESSAGES_CODE(0x2E); +} + namespace error_conditions { //note these are not actually descriptors const std::string INTERNAL_ERROR("amqp:internal-error"); @@ -97,6 +109,8 @@ const std::string UNAUTHORIZED_ACCESS("amqp:unauthorized-access"); const std::string DECODE_ERROR("amqp:decode-error"); const std::string NOT_ALLOWED("amqp:not-allowed"); const std::string RESOURCE_LIMIT_EXCEEDED("amqp:resource-limit-exceeded"); +const std::string RESOURCE_DELETED("amqp:resource-deleted"); +const std::string PRECONDITION_FAILED("amqp:precondition-failed"); } }} // namespace qpid::amqp |