Amqp::Exchange
High-level exchange wrapper for amqp-client.cr-style migration code. New code can use Channel methods directly.
Constructors
Instance methods
bind(exchange : String, routing_key : String = "", no_wait : Bool = false, args arguments : Arguments | NamedTuple = Arguments.new) : self
Sourcechannel
Sourcename
Sourcepublish(body : Bytes, routing_key : String = "", mandatory : Bool = false, immediate : Bool = false, props properties : Properties = Properties.new) : UInt64
Sourcepublish(body : String, routing_key : String = "", mandatory : Bool = false, immediate : Bool = false, props properties : Properties = Properties.new) : UInt64
Sourcepublish(body : Bytes, routing_key : String = "", mandatory : Bool = false, immediate : Bool = false, props properties : Properties = Properties.new, &callback : Bool -> Nil) : UInt64
Sourcepublish(body : String, routing_key : String = "", mandatory : Bool = false, immediate : Bool = false, props properties : Properties = Properties.new, &callback : Bool -> Nil) : UInt64
Sourcepublish_confirm(body : Bytes, routing_key : String = "", mandatory : Bool = false, immediate : Bool = false, props properties : Properties = Properties.new, timeout : Time::Span = 30.seconds) : Bool
Sourcepublish_confirm(body : String, routing_key : String = "", mandatory : Bool = false, immediate : Bool = false, props properties : Properties = Properties.new, timeout : Time::Span = 30.seconds) : Bool
Sourceunbind(exchange : String, routing_key : String = "", no_wait : Bool = false, args arguments : Arguments | NamedTuple = Arguments.new) : self
Source