diff options
| author | Ted Ross <tross@apache.org> | 2009-09-02 12:32:56 +0000 |
|---|---|---|
| committer | Ted Ross <tross@apache.org> | 2009-09-02 12:32:56 +0000 |
| commit | 5781e67cca8d07d481797946c217e738264f6d23 (patch) | |
| tree | 4874c87e651077cd45c1d673aec8b55bdda6e971 /cpp/src/qmf/ResilientConnection.cpp | |
| parent | 016233ea124849d8402fc49819387478cfdff942 (diff) | |
| download | qpid-python-5781e67cca8d07d481797946c217e738264f6d23.tar.gz | |
More QMF implementation:
- Added schema handling and exchange to the console
- Improved the connection performance by switching to pre-acquired mode
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@810482 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qmf/ResilientConnection.cpp')
| -rw-r--r-- | cpp/src/qmf/ResilientConnection.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cpp/src/qmf/ResilientConnection.cpp b/cpp/src/qmf/ResilientConnection.cpp index a6f9eddcde..df84003c0f 100644 --- a/cpp/src/qmf/ResilientConnection.cpp +++ b/cpp/src/qmf/ResilientConnection.cpp @@ -270,7 +270,10 @@ void ResilientConnectionImpl::declareQueue(SessionHandle handle, char* queue) RCSession* sess = (RCSession*) handle.impl; sess->session.queueDeclare(arg::queue=queue, arg::autoDelete=true, arg::exclusive=true); + sess->subscriptions->setAcceptMode(ACCEPT_MODE_NONE); + sess->subscriptions->setAcquireMode(ACQUIRE_MODE_PRE_ACQUIRED); sess->subscriptions->subscribe(*sess, queue, queue); + sess->subscriptions->setFlowControl(queue, FlowControl::unlimited()); sess->dests.push_back(string(queue)); } |
