diff options
| author | Ken Giusti <kgiusti@apache.org> | 2013-04-11 21:47:40 +0000 |
|---|---|---|
| committer | Ken Giusti <kgiusti@apache.org> | 2013-04-11 21:47:40 +0000 |
| commit | 8b47505e4e783167cd666b7e6f8aca547c9a96e1 (patch) | |
| tree | 1e42ea111b6cf729d046b7650eaad73f579fd91b /cpp/src/qpid/broker/Broker.cpp | |
| parent | edde6c21a5749a54964b6fa69e8f9bbfb940fc21 (diff) | |
| download | qpid-python-8b47505e4e783167cd666b7e6f8aca547c9a96e1.tar.gz | |
QPID-4728: add 'credit' parameter to Federation Bridge configuration.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1467107 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/broker/Broker.cpp')
| -rw-r--r-- | cpp/src/qpid/broker/Broker.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cpp/src/qpid/broker/Broker.cpp b/cpp/src/qpid/broker/Broker.cpp index 098ffe34c4..ab5398a0e8 100644 --- a/cpp/src/qpid/broker/Broker.cpp +++ b/cpp/src/qpid/broker/Broker.cpp @@ -624,6 +624,7 @@ const std::string SRC_IS_QUEUE("srcIsQueue"); const std::string SRC_IS_LOCAL("srcIsLocal"); const std::string DYNAMIC("dynamic"); const std::string SYNC("sync"); +const std::string CREDIT("credit"); // parameters for deleting a Queue object const std::string IF_EMPTY("if_empty"); @@ -840,6 +841,7 @@ void Broker::createObject(const std::string& type, const std::string& name, bool srcIsLocal = false; bool dynamic = false; uint16_t sync = 0; + uint32_t credit = LinkRegistry::INFINITE_CREDIT; for (Variant::Map::const_iterator i = properties.begin(); i != properties.end(); ++i) { @@ -853,6 +855,7 @@ void Broker::createObject(const std::string& type, const std::string& name, else if (i->first == SRC_IS_LOCAL) srcIsLocal = bool(i->second); else if (i->first == DYNAMIC) dynamic = bool(i->second); else if (i->first == SYNC) sync = i->second.asUint16(); + else if (i->first == CREDIT) credit = i->second.asUint32(); else if (i->first == DURABLE) durable = bool(i->second); else if (i->first == QUEUE_NAME) queueName = i->second.asString(); else { @@ -867,7 +870,7 @@ void Broker::createObject(const std::string& type, const std::string& name, } std::pair<Bridge::shared_ptr, bool> rc = links.declare(name, *link, durable, src, dest, key, srcIsQueue, srcIsLocal, id, excludes, - dynamic, sync, + dynamic, sync, credit, 0, queueName); |
