Class AMSSyncProducer

Inheritance Relationships

Derived Type

Class Documentation

class AMSSyncProducer

Subclassed by rmq.AMSFanOutProducer

Public Functions

__init__(self, str host, int port, str vhost, str user, str password, str cert, str publish_queue, Optional[logging.Logger] logger=None)
open(self)
close(self)
__enter__(self)
__exit__(self, exc_type, exc_val, exc_tb)
send_message(self, message)

Public Members

host = host
port = port
vhost = vhost
user = user
password = password
cert = cert
connection_parameters = pika.ConnectionParameters(host=self.host,port=self.port,virtual_host=self.vhost,credentials=credentials,ssl_options=pika.SSLOptions(context),)
connection = pika.BlockingConnection(self.connection_parameters)
channel = self.connection.channel()

Protected Attributes

_connected = False
_publish_queue = publish_queue
_num_sent_messages = 0
_num_confirmed_messages = 0