add x-message-deduplication exchange type
This exchange type exist on RabbitMQ server with the plugin rabbitmq_message_deduplication This plugin code is available here: https://github.com/noxdafox/rabbitmq-message-deduplication
This commit is contained in:
parent
b891cc37a6
commit
c83708e9bd
|
|
@ -25,7 +25,8 @@ enum ExchangeType
|
|||
direct,
|
||||
topic,
|
||||
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::headers) exchangeType = "headers";
|
||||
else if (type == ExchangeType::consistent_hash) exchangeType = "x-consistent-hash";
|
||||
else if (type == ExchangeType::consistent_hash) exchangeType = "x-message-deduplication";
|
||||
|
||||
// the boolean options
|
||||
bool passive = (flags & AMQP::passive) != 0;
|
||||
|
|
|
|||
Loading…
Reference in New Issue