class

LavinMQ::AMQP::Channel

Inherits LavinMQ::Persister::ConfirmTarget < LavinMQ::SortableJSON < LavinMQ::Stats < LavinMQ::Client::Channel < LavinMQ::SortableJSON < Reference < Object

Constants

Log = LavinMQ::Log.for("amqp.channel")

Constructors

new(client : Client, id : UInt16)
Source

Instance methods

ack_count
Source
add_content(frame)
Source
basic_ack(frame)
Source
basic_get(frame)
Source
basic_nack(frame)
Source
basic_qos(frame) : Nil
Source
basic_recover(frame) : Nil
Source
basic_reject(frame)
Source
cancel_consumer(consumer : AMQP::Consumer) : Nil
Source
cancel_consumer(frame)
Source
check_consumer_timeout

Iterate over all unacked messages and see if any has been unacked longer than the queue's consumer timeout

Source
client
Source
close(reason : String) : Nil

Closes the channel from the server side, e.g. from the management API. The client is told why with a Channel::Close frame. Consumers, unacked messages and buffers are released right away, so a client that never replies with Channel::CloseOk can't keep any of them alive.

Source
close
Source
confirm_count
Source
confirm_select(frame)
Source
consume(frame)
Source
consumers
Source
consumers_size
Source
current_stats_details

Like stats_details but without log

Source
deliver(frame, msg, redelivered = false, flush = true) : Nil
Source
deliver_count
Source
deliver_get_count
Source
deliver_no_ack_count
Source
details_tuple
Source
do_confirm_ack(msgid, multiple = false)
Source
enqueue_confirm_ack(msgid : UInt64) : Nil

Non-blocking; if the 1-slot mailbox is full, the stale msgid is dropped (acks are cumulative).

Source
find_consumer
Source
flow(active : Bool)
Source
flow?
Source
flush
Source
get_count
Source
get_no_ack_count
Source
global_prefetch_count
Source
has_capacity
Source
has_capacity?
Source
increment_deliver_count(redelivered : Bool, no_ack : Bool = false)
Source
name
Source
next_msg_headers(frame)
Source
prefetch_count
Source
prefetch_count=(value : UInt16)
Source
publish_count
Source
redeliver_count
Source
reject_count
Source
return_unroutable_count
Source
running=(running : Bool)
Source
running?
Source
send(frame)
Source
start_publish(frame)
Source
state
Source
stats_details
Source
to_json(json : JSON::Builder)
Source
tx_commit(frame)
Source
tx_rollback(frame)
Source
tx_select(frame)
Source
unacked
Source
update_rates
Source

Nested types