diff options
| author | Carl C. Trieloff <cctrieloff@apache.org> | 2008-09-30 14:57:32 +0000 |
|---|---|---|
| committer | Carl C. Trieloff <cctrieloff@apache.org> | 2008-09-30 14:57:32 +0000 |
| commit | ee83554e46565e532595b72ffcec70a257576d0c (patch) | |
| tree | 0fc133a8e3377049c52f163650c476659de2b44f /cpp/src/qpid/broker/Message.cpp | |
| parent | 94cbf28380264c1da0b24fee44dd51e1acbf9058 (diff) | |
| download | qpid-python-ee83554e46565e532595b72ffcec70a257576d0c.tar.gz | |
QPID-1306
This patch includes:
- Optimistic Consume
- Support for forcing Queue durable on cluster failure
- Some cleanup on mgnt functions in Queue to inlines
- Tests
Still coming
- header for client queue options
- LVQ support bits.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@700489 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/broker/Message.cpp')
| -rw-r--r-- | cpp/src/qpid/broker/Message.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/cpp/src/qpid/broker/Message.cpp b/cpp/src/qpid/broker/Message.cpp index 331bb5e716..7d02fb3d3c 100644 --- a/cpp/src/qpid/broker/Message.cpp +++ b/cpp/src/qpid/broker/Message.cpp @@ -37,12 +37,18 @@ using std::string; TransferAdapter Message::TRANSFER; -Message::Message(const SequenceNumber& id) : frames(id), persistenceId(0), redelivered(false), loaded(false), staged(false), publisher(0), adapter(0) {} +Message::Message(const SequenceNumber& id) : frames(id), persistenceId(0), redelivered(false), loaded(false), +staged(false), forcePersistentPolicy(false), publisher(0), adapter(0) {} Message::~Message() { } +void Message::forcePersistent() +{ + forcePersistentPolicy = true; +} + std::string Message::getRoutingKey() const { return getAdapter().getRoutingKey(frames); @@ -73,7 +79,7 @@ const FieldTable* Message::getApplicationHeaders() const bool Message::isPersistent() { - return getAdapter().isPersistent(frames); + return (getAdapter().isPersistent(frames) || forcePersistentPolicy); } bool Message::requiresAccept() |
