Amqp::Channel
Constants
EMPTY_PROPERTIES = Properties.new
Log = ::Log.for("amqp.channel")
Instance methods
basic_consume(queue : String, tag : String = "", no_ack : Bool = true, exclusive : Bool = false, block : Bool = false, args arguments : Arguments | NamedTuple = Arguments.new, work_pool : Int32 = 1, &callback : DeliverMessage -> Nil) : String
Sourcebasic_publish(body : Bytes, exchange : String, routing_key : String = "", mandatory : Bool = false, immediate : Bool = false, props properties : Properties = Properties.new) : UInt64
Sourcebasic_publish(body : String, exchange : String, routing_key : String = "", mandatory : Bool = false, immediate : Bool = false, props properties : Properties = Properties.new) : UInt64
Sourcebasic_publish(io : IO, bytesize : Int, exchange : String, routing_key : String = "", mandatory : Bool = false, immediate : Bool = false, props properties : Properties = Properties.new) : UInt64
Sourcebasic_publish(io : IO, exchange : String, routing_key : String = "", mandatory : Bool = false, immediate : Bool = false, props properties : Properties = Properties.new) : UInt64
Sourcebasic_publish(body : Bytes, exchange : String, routing_key : String = "", mandatory : Bool = false, immediate : Bool = false, props properties : Properties = Properties.new, &callback : Bool -> Nil) : UInt64
Sourcebasic_publish(io : IO, bytesize : Int, exchange : String, routing_key : String = "", mandatory : Bool = false, immediate : Bool = false, props properties : Properties = Properties.new, &callback : Bool -> Nil) : UInt64
Sourcebasic_publish(io : IO, exchange : String, routing_key : String = "", mandatory : Bool = false, immediate : Bool = false, props properties : Properties = Properties.new, &callback : Bool -> Nil) : UInt64
Sourcebasic_publish(body : String, exchange : String, routing_key : String = "", mandatory : Bool = false, immediate : Bool = false, props properties : Properties = Properties.new, &callback : Bool -> Nil) : UInt64
Sourcebasic_publish_confirm(body : Bytes, exchange : String, routing_key : String = "", mandatory : Bool = false, immediate : Bool = false, props properties : Properties = Properties.new, timeout : Time::Span = 30.seconds) : Bool
Sourcebasic_publish_confirm(body : String, exchange : String, routing_key : String = "", mandatory : Bool = false, immediate : Bool = false, props properties : Properties = Properties.new, timeout : Time::Span = 30.seconds) : Bool
Sourcebasic_publish_confirm(io : IO, bytesize : Int, exchange : String, routing_key : String = "", mandatory : Bool = false, immediate : Bool = false, props properties : Properties = Properties.new, timeout : Time::Span = 30.seconds) : Bool
Sourcebasic_publish_confirm(io : IO, exchange : String, routing_key : String = "", mandatory : Bool = false, immediate : Bool = false, props properties : Properties = Properties.new, timeout : Time::Span = 30.seconds) : Bool
Sourceclose_reason
Sourceclosed?
Sourceconfirm_select
Sourceconfirms?
Sourceconfirms_enabled?
Sourceconsume(queue : String, consumer_tag : String = "", no_local : Bool = false, no_ack : Bool = false, exclusive : Bool = false, arguments : Amqp::Arguments | NamedTuple = Amqp::Arguments.new, buffer : Int32 = 1024) : Subscription
Sourceconsume(queue : String, *, consumer_tag : String = "", auto_ack : Bool = false, exclusive : Bool = false, no_local : Bool = false, arguments : Amqp::Arguments | NamedTuple = Amqp::Arguments.new, & : DeliverMessage -> _) : Nil
Sourcedefault_exchange
Sourceexchange(name : String, type : String, passive : Bool = false, durable : Bool = true, internal : Bool = false, auto_delete : Bool = false, args arguments : Arguments | NamedTuple = Arguments.new) : Exchange
Sourceexchange_bind(destination : String, source : String, routing_key : String = "", arguments : Amqp::Arguments | NamedTuple = Amqp::Arguments.new, *, no_wait : Bool = false) : Nil
Sourceexchange_declare(name : String, type : String = "direct", passive : Bool = false, durable : Bool = false, auto_delete : Bool = false, internal : Bool = false, arguments : Amqp::Arguments | NamedTuple = Amqp::Arguments.new) : Nil
Sourceexchange_unbind(destination : String, source : String, routing_key : String = "", arguments : Amqp::Arguments | NamedTuple = Amqp::Arguments.new, *, no_wait : Bool = false) : Nil
Sourceid
Sourceon_cancel
Sourceon_close
Sourceon_return
Sourceopen?
Sourceprepared_publisher(exchange : String, routing_key : String, *, properties : Properties = Properties.new, mandatory : Bool = false, immediate : Bool = false) : PreparedPublisher
Sourcepublish(exchange : String, routing_key : String, body : Bytes, properties : Properties = Properties.new, mandatory : Bool = false, immediate : Bool = false) : UInt64 | Nil
Sourcepublish(message : Message, exchange : String, routing_key : String, *, mandatory : Bool = false, immediate : Bool = false) : UInt64 | Nil
Sourcepublish_async(message : Message, exchange : String, routing_key : String, *, mandatory : Bool = false) : Tuple(UInt64, ::Channel(ConfirmOutcome))
Sourcepublish_async(body : Bytes, exchange : String, routing_key : String, *, properties : Properties = Properties.new, mandatory : Bool = false) : Tuple(UInt64, ::Channel(ConfirmOutcome))
Sourcepublish_batch(messages : Array(Message), exchange : String, routing_key : String, *, mandatory : Bool = false, immediate : Bool = false) : Array(UInt64 | Nil)
Sourcepublish_batch(bodies : Array(Bytes), exchange : String, routing_key : String, *, properties : Properties = Properties.new, mandatory : Bool = false, immediate : Bool = false) : Array(UInt64 | Nil)
Sourcepublish_confirm(message : Message, exchange : String, routing_key : String, *, mandatory : Bool = false, timeout : Time::Span = 30.seconds) : Bool
Sourcepublish_confirm(body : Bytes, exchange : String, routing_key : String, *, properties : Properties = Properties.new, mandatory : Bool = false, timeout : Time::Span = 30.seconds) : Bool
Sourcepublish_confirm_batch(messages : Array(Message), exchange : String, routing_key : String, *, window_size : Int32 = 500, mandatory : Bool = false, immediate : Bool = false, timeout : Time::Span = 30.seconds) : Bool
Sourcepublish_confirm_batch(bodies : Array(Bytes), exchange : String, routing_key : String, *, properties : Properties = Properties.new, window_size : Int32 = 500, mandatory : Bool = false, immediate : Bool = false, timeout : Time::Span = 30.seconds) : Bool
Sourcequeue(name : String, passive : Bool = false, durable : Bool = true, exclusive : Bool = false, auto_delete : Bool = false, args arguments : Arguments | NamedTuple = Arguments.new) : Queue
Sourcequeue
Sourcequeue_bind(queue : String, exchange : String, routing_key : String = "", arguments : Amqp::Arguments | NamedTuple = Amqp::Arguments.new, *, no_wait : Bool = false) : Nil
Sourcequeue_declare(name : String = "", passive : Bool = false, durable : Bool = false, exclusive : Bool = false, auto_delete : Bool = false, arguments : Amqp::Arguments | NamedTuple = Amqp::Arguments.new, *, no_wait : Bool = false) : QueueInfo
Sourcequeue_unbind(queue : String, exchange : String, routing_key : String = "", arguments : Amqp::Arguments | NamedTuple = Amqp::Arguments.new) : Nil
Sourcesubscribe(queue : String, *, consumer_tag : String = "", auto_ack : Bool = false, exclusive : Bool = false, no_local : Bool = false, arguments : Amqp::Arguments | NamedTuple = Amqp::Arguments.new, buffer : Int32 = 16) : Subscription
Sourcetransaction
Sourcetx_commit
Sourcetx_rollback
Sourcetx_select
SourceBlock until every publish issued so far in this channel has been settled by the broker. Returns true if all were acked, false if any was nacked or the timeout expired. Raises if the channel is closed while waiting.