summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/replication/ReplicationExchange.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/qpid/replication/ReplicationExchange.h')
-rw-r--r--cpp/src/qpid/replication/ReplicationExchange.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/cpp/src/qpid/replication/ReplicationExchange.h b/cpp/src/qpid/replication/ReplicationExchange.h
index ed2b5956b6..897e4a954e 100644
--- a/cpp/src/qpid/replication/ReplicationExchange.h
+++ b/cpp/src/qpid/replication/ReplicationExchange.h
@@ -22,6 +22,7 @@
*
*/
#include "qpid/broker/Exchange.h"
+#include "qpid/framing/SequenceNumber.h"
namespace qpid {
namespace replication {
@@ -51,8 +52,12 @@ class ReplicationExchange : public qpid::broker::Exchange
bool isBound(qpid::broker::Queue::shared_ptr queue, const std::string* const routingKey, const qpid::framing::FieldTable* const args);
private:
qpid::broker::QueueRegistry& queues;
- bool expectingEnqueue;
- std::string targetQueue;
+ qpid::framing::SequenceNumber sequence;
+ bool init;
+
+ bool isDuplicate(const qpid::framing::FieldTable* args);
+ void handleEnqueueEvent(const qpid::framing::FieldTable* args, qpid::broker::Deliverable& msg);
+ void handleDequeueEvent(const qpid::framing::FieldTable* args);
};
}} // namespace qpid::replication