diff options
| author | Alan Conway <aconway@apache.org> | 2009-05-26 21:41:52 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2009-05-26 21:41:52 +0000 |
| commit | 0c30ca90a6820dd152677c3c0966a6a20fd377bb (patch) | |
| tree | d643b8ec8869d94c9baef34e64c884fff6656cab /cpp/src/qpid/cluster/Connection.h | |
| parent | 5ce2eb3ccdfe0b90436b6095b0498d59f9057de0 (diff) | |
| download | qpid-python-0c30ca90a6820dd152677c3c0966a6a20fd377bb.tar.gz | |
Improved doOutput algorithm.
Simpler & more robust algorithm based on message count rather than byte size.
Self-tuning, removes 2 hard-to-explain cluster options.
Similar or marginally better performance.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@778896 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/cluster/Connection.h')
| -rw-r--r-- | cpp/src/qpid/cluster/Connection.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/cpp/src/qpid/cluster/Connection.h b/cpp/src/qpid/cluster/Connection.h index 969d191bd7..a0be2203e4 100644 --- a/cpp/src/qpid/cluster/Connection.h +++ b/cpp/src/qpid/cluster/Connection.h @@ -115,7 +115,7 @@ class Connection : const framing::SequenceNumber& received, const framing::SequenceSet& unknownCompleted, const SequenceSet& receivedIncomplete); - void shadowReady(uint64_t memberId, uint64_t connectionId, const std::string& username, const std::string& fragment); + void shadowReady(uint64_t memberId, uint64_t connectionId, const std::string& username, const std::string& fragment, uint32_t sendMax); void membership(const framing::FieldTable&, const framing::FieldTable&, uint64_t frameSeq); @@ -150,6 +150,8 @@ class Connection : void deliverClose(); + OutputInterceptor& getOutput() { return output; } + private: struct NullFrameHandler : public framing::FrameHandler { void handle(framing::AMQFrame&) {} @@ -164,8 +166,7 @@ class Connection : void init(); bool checkUnsupported(const framing::AMQBody& body); - void deliverDoOutput(uint32_t requested); - void sendDoOutput(); + void deliverDoOutput(uint32_t limit) { output.deliverDoOutput(limit); } boost::shared_ptr<broker::Queue> findQueue(const std::string& qname); broker::SessionState& sessionState(); |
