Class BlockingClient

Inheritance Relationships

Derived Type

Class Documentation

class BlockingClient
BlockingClient is a class that manages a simple blocking RMQ client lifecycle.

Subclassed by rmq.StatusPoller

Public Functions

__init__(self, str host, int port, str vhost, str user, str password, Optional[str] cert=None, Optional[Callable] callback=None, Optional[logging.Logger] logger=None)
__enter__(self)
__exit__(self, exc_type, exc_val, exc_tb)
connect(self, queue)
Connect to the queue

Public Members

logger = logger if logger else logging.getLogger(__name__)
cert = cert
context = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT)
host = host
vhost = vhost
port = port
user = user
password = password
callback = callback
credentials = pika.PlainCredentials(self.user, self.password)
connection_params = pika.ConnectionParameters(host=self.host,port=self.port,virtual_host=self.vhost,credentials=self.credentials,ssl_options=ssl_options,)
connection = pika.BlockingConnection(self.connection_params)