Beispiel #1
0
 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()
     Consumer.start(self)
Beispiel #2
0
 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()
     Consumer.start(self)
Beispiel #3
0
 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()
Beispiel #4
0
 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()