class Beanstalk::Server

Overview

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

Defined in:

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, port = DEFAULT_PORT) #

Constructor.


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.


Instance Method Detail

def host : String #

Fetches the host name/IP address for the server.


def port : Int32 #

Fetches the port number for the server.


def to_s #

Generates a string for a Server.