class Beanstalk::Server

Overview

This class represents a single server instance running the Beanstalk queue.

Defined in:

beanstalk/server.cr

Constant Summary

DEFAULT_PORT = 11300

Constant for the default Beanstalk port number.

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(host : String, port : Int32 = DEFAULT_PORT) #

Constructor.


[View source]

Class Method Detail

def self.for(details : String) #

Class method that converts a String in the form "host:port" into a Server instance. The port part of the string is optional.


[View source]

Instance Method Detail

def host : String #

Fetches the host name/IP address for the server.


[View source]
def port : Int32 #

Fetches the port number for the server.


[View source]
def to_s #

Generates a string for a Server.


[View source]