class LavinMQ::AMQP::Client

Included Modules

Defined in:

lavinmq/amqp/client.cr

Constant Summary

DEFAULT_EX = "amq.default"
Log = LavinMQ::Log.for("amqp.client")

Constructors

Instance Method Summary

Instance methods inherited from module LavinMQ::SortableJSON

details_tuple details_tuple, to_json(json : JSON::Builder) to_json

Macros inherited from module LavinMQ::Stats

rate_stats(stats_keys, log_keys = [] of ::String) rate_stats

Instance methods inherited from module LavinMQ::SortableJSON

details_tuple details_tuple, to_json(json : JSON::Builder) to_json

Constructor Detail

def self.new(socket : IO, connection_info : ConnectionInfo, vhost : VHost, user : User, tune_ok, start_ok) #

[View source]

Instance Method Detail

def auth_mechanism : String #

[View source]
def channel_max : UInt16 #

[View source]
def channel_name_prefix #

[View source]
def channels : Hash(UInt16, LavinMQ::Client::Channel) #

[View source]
def client_name #

Returns client provided connection name if set, else server generated name


[View source]
def client_properties : AMQP::Table #

[View source]
def close(reason = nil, timeout : Time::Span = 5.seconds) #

[View source]
def close_channel(frame : AMQ::Protocol::Frame, code, text) #

[View source]
def close_connection(frame : AMQ::Protocol::Frame | Nil, code, text) #

[View source]
def closed? #

[View source]
def connection_details #

[View source]
def current_stats_details #

Like stats_details but without log


[View source]
def deliver(frame, msg) #

[View source]
def details_tuple #

[View source]
def force_close #

[View source]
def heartbeat_timeout : UInt16 #

[View source]
def log : LavinMQ::Logger #

[View source]
def max_frame_size : UInt32 #

[View source]
def name : String #

[View source]
def queue_exclusive_to_other_client?(q) #

[View source]
def recv_oct_count : UInt64 #

def remote_address : Socket::IPAddress #

[View source]
def send(frame : AMQP::Frame, channel_is_open : Bool | Nil = nil) : Bool #

[View source]
def send_access_refused(frame, text) #

[View source]
def send_frame_error(message = nil) #

[View source]
def send_internal_error(message) #

[View source]
def send_not_found(frame, text = "") #

[View source]
def send_not_implemented(ex : AMQ::Protocol::Error::NotImplemented) #

[View source]
def send_not_implemented(frame, text = nil) #

[View source]
def send_oct_count : UInt64 #

def send_precondition_failed(frame, text) #

[View source]
def send_resource_locked(frame, text) #

[View source]
def state #

[View source]
def stats_details #

[View source]
def update_rates : Nil #

[View source]
def user : LavinMQ::User #

[View source]
def vhost : LavinMQ::VHost #

[View source]