diff options
| author | Gordon Sim <gsim@apache.org> | 2013-11-12 13:42:50 +0000 |
|---|---|---|
| committer | Gordon Sim <gsim@apache.org> | 2013-11-12 13:42:50 +0000 |
| commit | 1fe3f166e5db96aae1253343c1eaea3d48b01316 (patch) | |
| tree | bf22224e3b8cac006306aa89202441180029ee3c /cpp/src/qpid/broker/QueueSettings.cpp | |
| parent | 5f3ff3bcc03691d0646cd75d8408be284d8adee6 (diff) | |
| download | qpid-python-1fe3f166e5db96aae1253343c1eaea3d48b01316.tar.gz | |
QPID-5251: allow policies to be specified that will create topics or queues on demand if they match the specified pattern
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1541059 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/broker/QueueSettings.cpp')
| -rw-r--r-- | cpp/src/qpid/broker/QueueSettings.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cpp/src/qpid/broker/QueueSettings.cpp b/cpp/src/qpid/broker/QueueSettings.cpp index 53194cf064..8de8539579 100644 --- a/cpp/src/qpid/broker/QueueSettings.cpp +++ b/cpp/src/qpid/broker/QueueSettings.cpp @@ -62,6 +62,7 @@ const std::string FILTER("qpid.filter"); const std::string LIFETIME_POLICY("qpid.lifetime-policy"); const std::string DELETE_IF_UNUSED_KEY("delete-if-unused"); const std::string DELETE_IF_UNUSED_AND_EMPTY_KEY("delete-if-unused-and-empty"); +const std::string MANUAL("manual"); const std::string LVQ_LEGACY("qpid.last_value_queue"); const std::string LVQ_LEGACY_KEY("qpid.LVQ_key"); @@ -227,8 +228,12 @@ bool QueueSettings::handle(const std::string& key, const qpid::types::Variant& v } else if (key == LIFETIME_POLICY) { if (value.asString() == DELETE_IF_UNUSED_KEY) { lifetime = DELETE_IF_UNUSED; + autodelete = true; } else if (value.asString() == DELETE_IF_UNUSED_AND_EMPTY_KEY) { lifetime = DELETE_IF_UNUSED_AND_EMPTY; + autodelete = true; + } else if (value.asString() == MANUAL) { + autodelete = false; } else { QPID_LOG(warning, "Invalid value for " << LIFETIME_POLICY << ": " << value); } |
