class AMQProxy::Upstream

Defined in:

amqproxy/upstream.cr

Constant Summary

SAFE_BASIC_METHODS = {40, 10}

Constructors

Instance Method Summary

Constructor Detail

def self.new(host : String, port : Int32, tls : Bool, log : Logger) #

[View source]

Instance Method Detail

def client_disconnected #

[View source]
def close(reason = "") #

[View source]
def closed? #

[View source]
def connect(user : String, password : String, vhost : String) #

[View source]
def current_client=(current_client : Client | Nil) #

[View source]
def last_used : Time::Span #

[View source]
def last_used=(last_used : Time::Span) #

[View source]
def read_loop #

Frames from upstream (to client)


[View source]
def write(frame : AMQ::Protocol::Frame) #

Send frames to upstream (often from the client)


[View source]