class Nsq::Connection

Included Modules

Defined in:

nsq/connection.cr

Constant Summary

CLOSE_WAIT = "CLOSE_WAIT"
ERROR_INVALID = "E_INVALID"
FRAME_CLASSES = [Response, Error, Message]
RESPONSE_HEARTBEAT = "_heartbeat_"
RESPONSE_OK = "OK"
USER_AGENT = "nsq-crystal/#{Nsq::VERSION}"

Constructors

Instance Method Summary

Instance methods inherited from module Nsq::AttributeLogger

debug(msg) debug, error(msg) error, fatal(msg) fatal, info(msg) info, warn(msg) warn

Class methods inherited from module Nsq::AttributeLogger

included(klass) included

Constructor Detail

def self.new(opts : Opts) #

[View source]

Instance Method Detail

def channel_depth(topic : String, channel : String) #

[View source]
def channel_empty(topic = nil, channel = nil) #

[View source]
def close #

close the connection and don't try to re-open it


[View source]
def connected? #

[View source]
def dpub(topic, delay_in_ms, message) #

[View source]
def fin(message_id : String) #

[View source]
def host : String #

[View source]
def max_in_flight : Int32 #

[View source]
def max_in_flight=(max_in_flight : Int32) #

[View source]
def mpub(topic, messages) #

[View source]
def port : Int32 #

[View source]
def presumed_in_flight : Int32 #

[View source]
def pub(topic, message : String) #

[View source]
def rdy(count) #

[View source]
def re_up_ready #

Tell the server we are ready for more messages!


[View source]
def req(message_id, timeout) #

[View source]
def stats(topic = nil, channel = nil) #

[View source]
def sub(topic, channel) #

[View source]
def topic_delete(topic = nil) #

[View source]
def topic_msgcount(topic : String) #

[View source]
def touch(message_id) #

[View source]