AMQP::Client::Exchange
High-level Exchange object
Instance methods
bind(exchange : String, routing_key : String, no_wait = false, args arguments : NamedTuple = NamedTuple.new)
SourceBind the exchange to another exchange self is the destination exchange and the argument is the source exchange
publish(message, routing_key : String, mandatory = false, immediate = false, props properties = Properties.new)
Publish a message to the exchange
publish(message, routing_key : String, mandatory = false, immediate = false, props properties = Properties.new, &blk)
Publish a message to the exchange, block is called when message is confirmed
publish_confirm(message, routing_key : String, mandatory = false, immediate = false, props properties = Properties.new)
Publish and confirm a message to the exchange
publish_confirm(message, routing_key : String, mandatory = false, immediate = false, props properties = Properties.new, &blk)
Publish and confirm a message to the exchange, block is called when message is confirmed
unbind(exchange : String, routing_key : String, no_wait = false, args arguments : NamedTuple = NamedTuple.new)
Source