From 46b15e2c2f9e454fd7041f1e6ad723d093bee052 Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Wed, 12 Sep 2007 14:49:12 +0000 Subject: In ClientChannel: Use subscribe and flush in place of get; use per-subscriber flow control for managing prefetches. In brokers Session: set credit to 0 when subscription is created (modified python tests accordingly) git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@574979 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/client/ClientChannel.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'cpp/src/qpid/client/ClientChannel.h') diff --git a/cpp/src/qpid/client/ClientChannel.h b/cpp/src/qpid/client/ClientChannel.h index 9e5e3a2e70..b33af65d21 100644 --- a/cpp/src/qpid/client/ClientChannel.h +++ b/cpp/src/qpid/client/ClientChannel.h @@ -71,7 +71,7 @@ class Channel : private sys::Runnable mutable sys::Mutex lock; sys::Thread dispatcher; - uint16_t prefetch; + uint32_t prefetch; const bool transactional; framing::ProtocolVersion version; @@ -88,7 +88,6 @@ class Channel : private sys::Runnable void stop(); - void setQos(); void open(const Session& session); void closeInternal(); void join(); @@ -110,7 +109,7 @@ class Channel : private sys::Runnable * messages the channel is willing to have sent to it * asynchronously */ - Channel(bool transactional = false, u_int16_t prefetch = 500); + Channel(bool transactional = false, u_int16_t prefetch = 0); ~Channel(); @@ -204,9 +203,9 @@ class Channel : private sys::Runnable /** * Change the prefetch in use. */ - void setPrefetch(uint16_t prefetch); + void setPrefetch(uint32_t prefetch); - uint16_t getPrefetch() { return prefetch; } + uint32_t getPrefetch() { return prefetch; } /** * Start message dispatching on a new thread -- cgit v1.2.1