Example #1
 def start(self, listener):
     Start processing messages on the queue and
     forward to the listener.
     :param listener: A reply listener.
     :type listener: Listener
     self.listener = listener
     self.blacklist = set()
Example #2
 def __init__(self, queue, url=None, authenticator=None):
     :param queue: The AMQP node.
     :type queue: gofer.messaging.adapter.model.Queue
     :param url: The broker URL.
     :type url: str
     :param authenticator: A message authenticator.
     :type authenticator: gofer.messaging.auth.Authenticator
     Consumer.__init__(self, queue, url)
     self.authenticator = authenticator
     self.listener = None
     self.blacklist = set()