2.3. Exclusive Bindings for Direct Exchanges

In MRG Messaging, direct exchanges support exclusive bindings, which ensure that a given binding key is associated with only one queue. If a new binding is created using the same binding key as an existing binding, the new binding is created and the existing binding is deleted. This ensures that a given message is routed to exactly one queue if the routing key of the message matches a binding key.
An exclusive binding is created by setting qpid.exclusive-binding to true:
// Creating an exclusive binding in C++

FieldTable args;
args.setInt("qpid.exclusive-binding",1);

session.exchangeBind(arg::exchange="amq.direct", arg::queue="my-queue",
                     arg::bindingKey="my-key", arg::arguments=args);