summaryrefslogtreecommitdiff
path: root/qpid/cpp/lib/broker/BrokerChannel.h
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2006-12-06 12:01:40 +0000
committerGordon Sim <gsim@apache.org>2006-12-06 12:01:40 +0000
commit5ee8574ae432294f56f60ced5cfde3082cfd2dba (patch)
treec7ff45a2d70b66ab31b35021e4c73ae295510280 /qpid/cpp/lib/broker/BrokerChannel.h
parent69520adb359ca50918c802611e300887bcfd5bea (diff)
downloadqpid-python-5ee8574ae432294f56f60ced5cfde3082cfd2dba.tar.gz
Added new configuration option for staging threshold (size above which messages
will be written to disk as content arrives rather than accumulating that content in memory). Pass this through to all channels and to the store on recovery. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@483046 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/lib/broker/BrokerChannel.h')
-rw-r--r--qpid/cpp/lib/broker/BrokerChannel.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/qpid/cpp/lib/broker/BrokerChannel.h b/qpid/cpp/lib/broker/BrokerChannel.h
index 804d6866b1..50c8358e96 100644
--- a/qpid/cpp/lib/broker/BrokerChannel.h
+++ b/qpid/cpp/lib/broker/BrokerChannel.h
@@ -36,7 +36,7 @@
#include <NameGenerator.h>
#include <Prefetch.h>
#include <BrokerQueue.h>
-#include <TransactionalStore.h>
+#include <MessageStore.h>
#include <TxAck.h>
#include <TxBuffer.h>
#include <TxPublish.h>
@@ -85,7 +85,7 @@ namespace qpid {
qpid::sys::Mutex deliveryLock;
TxBuffer txBuffer;
AccumulatedAck accumulatedAck;
- TransactionalStore* store;
+ MessageStore* const store;
MessageBuilder messageBuilder;//builder for in-progress message
Exchange::shared_ptr exchange;//exchange to which any in-progress message was published to
@@ -95,7 +95,8 @@ namespace qpid {
bool checkPrefetch(Message::shared_ptr& msg);
public:
- Channel(qpid::framing::OutputHandler* out, int id, u_int32_t framesize);
+ Channel(qpid::framing::OutputHandler* out, int id, u_int32_t framesize,
+ MessageStore* const _store = 0, u_int64_t stagingThreshold = 0);
~Channel();
inline void setDefaultQueue(Queue::shared_ptr queue){ defaultQueue = queue; }
inline Queue::shared_ptr getDefaultQueue(){ return defaultQueue; }