'Constructor for a BeanstalkdQueue.'

def __init__(self, name, host='localhost:11300', maxsize=0):

    self.name = name
    config = host.split(':')
    self.host = (config[0] if len(config) else 'localhost')
    self.port = (int(config[1]) if (len(config) > 1) else 11300)
    self.lock = threading.RLock()
    self.maxsize = maxsize
    self.reconnect()
