diff options
| author | Alan Conway <aconway@apache.org> | 2008-09-18 20:18:29 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2008-09-18 20:18:29 +0000 |
| commit | b210ae04b88afa38238ca56e474ca60533f2768b (patch) | |
| tree | 9caa01a04713bcc33a1a3b7cbbb4e84e96232713 /cpp/src/qpid/cluster/OutputInterceptor.h | |
| parent | aedf627380016ebf210ea88029be8bd338ffc989 (diff) | |
| download | qpid-python-b210ae04b88afa38238ca56e474ca60533f2768b.tar.gz | |
Dump shared state to new cluster members.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@696788 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/cluster/OutputInterceptor.h')
| -rw-r--r-- | cpp/src/qpid/cluster/OutputInterceptor.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/cpp/src/qpid/cluster/OutputInterceptor.h b/cpp/src/qpid/cluster/OutputInterceptor.h index 548ec32b5b..ad9d9952bf 100644 --- a/cpp/src/qpid/cluster/OutputInterceptor.h +++ b/cpp/src/qpid/cluster/OutputInterceptor.h @@ -43,14 +43,16 @@ class OutputInterceptor : public sys::ConnectionOutputHandler { // sys::ConnectionOutputHandler functions void send(framing::AMQFrame& f); void activateOutput(); - void close() { Locker l(lock); next.close(); } - size_t getBuffered() const { Locker l(lock); return next.getBuffered(); } + void close() { Locker l(lock); next->close(); } + size_t getBuffered() const { Locker l(lock); return next->getBuffered(); } // Delivery point for doOutput requests. void deliverDoOutput(size_t requested); // Intercept doOutput requests on Connection. bool doOutput(); + void setOutputHandler(sys::ConnectionOutputHandler& h); + cluster::Connection& parent; private: @@ -60,7 +62,7 @@ class OutputInterceptor : public sys::ConnectionOutputHandler { void sendDoOutput(); mutable sys::Mutex lock; - sys::ConnectionOutputHandler& next; + sys::ConnectionOutputHandler* next; size_t sent; WriteEstimate writeEstimate; bool moreOutput; |
