summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/broker/NullMessageStore.h
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2006-11-24 17:21:47 +0000
committerGordon Sim <gsim@apache.org>2006-11-24 17:21:47 +0000
commitd6befaeb77df8a09845e4c11070afe8ab4d5052d (patch)
treeb5f9ec40dedf2053d04c87f0117f0953a3026180 /cpp/src/qpid/broker/NullMessageStore.h
parentb442c78351bf330cf23b67e86aa17424d5a78966 (diff)
downloadqpid-python-d6befaeb77df8a09845e4c11070afe8ab4d5052d.tar.gz
Initial sketching out of staging functionality for large messages (i.e. allowing content to be stored as it arrives, rather than collecting it in memory until complete).
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@478923 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/broker/NullMessageStore.h')
-rw-r--r--cpp/src/qpid/broker/NullMessageStore.h24
1 files changed, 14 insertions, 10 deletions
diff --git a/cpp/src/qpid/broker/NullMessageStore.h b/cpp/src/qpid/broker/NullMessageStore.h
index 7916467091..5b363db662 100644
--- a/cpp/src/qpid/broker/NullMessageStore.h
+++ b/cpp/src/qpid/broker/NullMessageStore.h
@@ -32,17 +32,21 @@ namespace qpid {
* A null implementation of the MessageStore interface
*/
class NullMessageStore : public MessageStore{
+ const bool warn;
public:
- void create(const Queue& queue);
- void destroy(const Queue& queue);
- void recover(RecoveryManager& queues);
- void enqueue(TransactionContext* ctxt, Message::shared_ptr& msg, const Queue& queue, const string * const xid);
- void dequeue(TransactionContext* ctxt, Message::shared_ptr& msg, const Queue& queue, const string * const xid);
- void committed(const string * const xid);
- void aborted(const string * const xid);
- std::auto_ptr<TransactionContext> begin();
- void commit(TransactionContext* ctxt);
- void abort(TransactionContext* ctxt);
+ NullMessageStore(bool warn = true);
+ void virtual create(const Queue& queue);
+ void virtual destroy(const Queue& queue);
+ void virtual recover(RecoveryManager& queues);
+ void virtual stage(Message::shared_ptr& msg);
+ void virtual destroy(Message::shared_ptr& msg);
+ void virtual enqueue(TransactionContext* ctxt, Message::shared_ptr& msg, const Queue& queue, const string * const xid);
+ void virtual dequeue(TransactionContext* ctxt, Message::shared_ptr& msg, const Queue& queue, const string * const xid);
+ void virtual committed(const string * const xid);
+ void virtual aborted(const string * const xid);
+ virtual std::auto_ptr<TransactionContext> begin();
+ void virtual commit(TransactionContext* ctxt);
+ void virtual abort(TransactionContext* ctxt);
~NullMessageStore(){}
};
}