Merge pull request #437 from TonyRoussel/add-message-deduplication-exchange
add x-message-deduplication exchange type
This commit is contained in:
commit
04c77b5cff
|
|
@ -25,7 +25,8 @@ enum ExchangeType
|
||||||
direct,
|
direct,
|
||||||
topic,
|
topic,
|
||||||
headers,
|
headers,
|
||||||
consistent_hash
|
consistent_hash,
|
||||||
|
message_deduplication
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -290,6 +290,7 @@ Deferred &ChannelImpl::declareExchange(const std::string &name, ExchangeType typ
|
||||||
else if (type == ExchangeType::topic) exchangeType = "topic";
|
else if (type == ExchangeType::topic) exchangeType = "topic";
|
||||||
else if (type == ExchangeType::headers) exchangeType = "headers";
|
else if (type == ExchangeType::headers) exchangeType = "headers";
|
||||||
else if (type == ExchangeType::consistent_hash) exchangeType = "x-consistent-hash";
|
else if (type == ExchangeType::consistent_hash) exchangeType = "x-consistent-hash";
|
||||||
|
else if (type == ExchangeType::consistent_hash) exchangeType = "x-message-deduplication";
|
||||||
|
|
||||||
// the boolean options
|
// the boolean options
|
||||||
bool passive = (flags & AMQP::passive) != 0;
|
bool passive = (flags & AMQP::passive) != 0;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue