def __init__(self, url): queue = Queue(address.queue) Consumer.__init__(self, queue, url=url) self.received = 0
def __init__(self, url, uuid, port, host=HOST): Consumer.__init__(self, toq(uuid), url=url) self.uuid = uuid self.port = port self.host = host
def __init__(self, url): topic = Topic('heartbeat') Consumer.__init__(self, topic, url=url)