diff options
| author | Gordon Sim <gsim@apache.org> | 2007-09-12 14:49:12 +0000 |
|---|---|---|
| committer | Gordon Sim <gsim@apache.org> | 2007-09-12 14:49:12 +0000 |
| commit | 46b15e2c2f9e454fd7041f1e6ad723d093bee052 (patch) | |
| tree | 34af4f367c3b5b46955ce070384a99adb742b562 /cpp/src/qpid/client/ClientChannel.h | |
| parent | 86255826a849d7d8ced73009274a5bee909a0923 (diff) | |
| download | qpid-python-46b15e2c2f9e454fd7041f1e6ad723d093bee052.tar.gz | |
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
Diffstat (limited to 'cpp/src/qpid/client/ClientChannel.h')
| -rw-r--r-- | cpp/src/qpid/client/ClientChannel.h | 9 |
1 files changed, 4 insertions, 5 deletions
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 |
