class AMQP::Client::Channel

Defined in:

amqp-client/channel.cr
amqp-client/errors.cr

Constant Summary

LOG = AMQP::Client::Connection::LOG.for(self)

Constructors

Instance Method Summary

Macro Summary

Constructor Detail

def self.new(connection : Connection, id : UInt16) #

[View source]

Instance Method Detail

def basic_ack(delivery_tag : UInt64, multiple = false) : Nil #

[View source]
def basic_cancel(consumer_tag) : Nil #

[View source]
def basic_consume(queue, tag = "", no_ack = true, exclusive = false, block = false, args = Arguments.new, work_pool = 1, &blk : DeliverMessage -> Nil) #

[View source]
def basic_get(queue : String, no_ack : Bool) : GetMessage | Nil #

[View source]
def basic_nack(delivery_tag : UInt64, requeue = false, multiple = false) : Nil #

[View source]
def basic_publish(bytes : Bytes, exchange, routing_key = "", mandatory = false, immediate = false, props = Properties.new) #

[View source]
def basic_publish(str : String, exchange, routing_key = "", mandatory = false, immediate = false, props = Properties.new) #

[View source]
def basic_publish(io : IO::Memory | IO::FileDescriptor, exchange, routing_key = "", mandatory = false, immediate = false, props = Properties.new) #

[View source]
def basic_publish(body : IO | Bytes, bytesize : Int, exchange : String, routing_key = "", mandatory = false, immediate = false, props = Properties.new) : UInt64 #

[View source]
def basic_publish_confirm(io : IO, bytesize : Int, exchange : String, routing_key = "", mandatory = false, immediate = false, props = Properties.new) : Bool #

[View source]
def basic_publish_confirm(msg, exchange, routing_key = "", mandatory = false, immediate = false, props = Properties.new) : Bool #

[View source]
def basic_qos(count, global = false) : Nil #

[View source]
def basic_recover(requeue) : Nil #

[View source]
def basic_reject(delivery_tag : UInt64, requeue = false) : Nil #

[View source]
def cleanup #

[View source]
def close(frame : Frame::Channel::Close) : Nil #

[View source]
def close : Nil #

[View source]
def closed? : Bool #

[View source]
def confirm_select(no_wait = false) : Nil #

[View source]
def default_exchange #

[View source]
def direct_exchange(name = "amq.direct", passive = true) #

[View source]
def exchange(name, type, passive = false, durable = true, exclusive = false, internal = false, auto_delete = false, args = Arguments.new) #

[View source]
def exchange_bind(source : String, destination : String, routing_key : String, no_wait = false, args = Arguments.new) : Nil #

[View source]
def exchange_declare(name : String, type : String, passive = false, durable = true, exclusive = false, internal = false, auto_delete = false, no_wait = false, args = Arguments.new) : Nil #

[View source]
def exchange_delete(name, if_unused = false, no_wait = false) : Nil #

[View source]
def exchange_unbind(source : String, destination : String, routing_key : String, no_wait = false, args = Arguments.new) : Nil #

[View source]
def fanout_exchange(name = "amq.fanout", passive = true) #

[View source]
def flow(active : Bool) #

[View source]
def has_subscriber?(consumer_tag) #

[View source]
def header_exchange(name = "amq.header", passive = true) #

[View source]
def id : UInt16 #

[View source]
def incoming(frame) #

[View source]
def inspect(io : IO) : Nil #
Description copied from class Reference

Appends a String representation of this object which includes its class name, its object address and the values of all instance variables.

class Person
  def initialize(@name : String, @age : Int32)
  end
end

Person.new("John", 32).inspect # => #<Person:0x10fd31f20 @name="John", @age=32>

[View source]
def on_cancel(&blk : String -> Nil) #

[View source]
def on_close(&blk : UInt16, String -> ) #

[View source]
def on_confirm(msgid, &blk : Bool -> Nil) #

[View source]
def on_return(&blk : ReturnedMessage -> Nil) #

[View source]
def open #

[View source]
def prefetch(count, global = false) : Nil #

[View source]
def queue(name : String, passive = false, durable = true, exclusive = false, auto_delete = false, args = Arguments.new) #

Declares a queue with a name, by default durable and not auto-deleted


[View source]
def queue #

Declares a temporary queue, which won't be durable and auto-deleted when not used anymore


[View source]
def queue_bind(queue : String, exchange : String, routing_key : String, no_wait = false, args = Arguments.new) : Nil #

[View source]
def queue_declare(name : String, passive = false, durable = true, exclusive = false, auto_delete = false, args = Arguments.new) #

[View source]
def queue_delete(name : String, if_unused = false, if_empty = false) #

[View source]
def queue_purge(name : String) #

[View source]
def queue_unbind(queue : String, exchange : String, routing_key : String, args = Arguments.new) : Nil #

[View source]
def topic_exchange(name = "amq.topic", passive = true) #

[View source]
def wait_for_confirm(msgid) : Bool #

Block until confirmed


[View source]

Macro Detail

macro expect(clz) #

[View source]