![]() heartbeat: Desired connection heartbeat timeout for negotiation.frame_max: Override the default maximum frame size for communication.connection_attempts: Specify how many times pika should try and reconnect before it gives up.client_properties: dict of client properties used to override the fields in the default.channel_max: Override the default maximum channel count value.None or a dict of options to pass to the underlying socket Port number of broker’s listening socket. None for plaintext or pika.SSLOptions instance for SSL/TLS. ![]() ![]() The value None disables this timeout.įull protocol stack TCP//AMQP bring-up timeout in Interval between socket connection attempts see alsoĬonnection_attempts. Locale value to pass to broker e.g., ‘en_US’. Defaults toĪMQP connection heartbeat timeout value for negotiation duringĬonnection tuning or callable which is invoked during connection tuning. Defaultsĭesired maximum AMQP frame size to use. Defaults toĬlient properties used to override the fields in the defaultĬlient properties reported to RabbitMQ via Connection.StartOk ConnectionParameters ( host=, port=, virtual_host=, credentials=, channel_max=, frame_max=, heartbeat=, ssl_options=, connection_attempts=, retry_delay=, socket_timeout=, stack_timeout=, locale=, blocked_connection_timeout=, client_properties=, tcp_options=, **kwargs ) ¶Ĭonnection parameters object that is passed into the connection adapter ConnectionParameters ( 'rabbit-server1', 5672, '/', credentials ) class nnection. PlainCredentials ( 'guest', 'guest' ) parameters = pika. Import pika # Set the connection parameters to connect to rabbit-server1 on port 5672 # on the / virtual host using the username "guest" and password "guest" credentials = pika.
0 Comments
Leave a Reply. |