class

AMQP::Client

Inherits Reference < Object

Constants

VERSION = "1.3.2"

Constructors

new(url : String)
Source
new(uri : URI)
Source
new(host : String = AMQP_HOST, port : Int32 = AMQP_PORT, vhost : String = AMQP_VHOST, user : String = AMQP_USER, password : String = AMQP_PASS, tls : TLSContext = AMQP_TLS, websocket : Bool = AMQP_WS, channel_max : UInt16 = 1024_u16, frame_max : UInt32 = 131072_u32, heartbeat : UInt16 = 0_u16, verify_mode = OpenSSL::SSL::VerifyMode::PEER, name : String | Nil = File.basename(PROGRAM_NAME), connection_information : AMQP::Client::ConnectionInformation = ConnectionInformation.new("amqp-client.cr", AMQP::Client::VERSION, "Crystal", Crystal::VERSION, File.basename(PROGRAM_NAME)), tcp : AMQP::Client::TCPConfig = TCPConfig.new, buffer_size : Int32 = 16384)
Source

Class methods

start(url : String | URI, & : AMQP::Client::Connection -> _)
Source
start(host = AMQP_HOST, port = AMQP_PORT, vhost = AMQP_VHOST, user = AMQP_USER, password = AMQP_PASS, tls : TLSContext = AMQP_TLS, websocket = AMQP_WS, channel_max = 1024_u16, frame_max = 131072_u32, heartbeat = 0_u16, verify_mode = OpenSSL::SSL::VerifyMode::PEER, name = nil, connection_information = ConnectionInformation.new, & : AMQP::Client::Connection -> _)
Source

Instance methods

buffer_size
Source
buffer_size=(buffer_size : Int32)
Source
connect

Establish a connection

Source
host
Source
host=(host : String)
Source
port
Source
port=(port : Int32)
Source
user
Source
user=(user : String)
Source
vhost
Source
vhost=(vhost : String)
Source
websocket
Source
websocket=(websocket : Bool)
Source

Nested types