Parameters: |
- channel – Connection channel.
- exchange – Default exchange.
- routing_key – Default routing key.
- serializer – Default serializer. Default is “json”.
- compression – Default compression method. Default is no
compression.
- auto_declare – Automatically declare the exchange
at instantiation. Default is True.
- on_return – Callback to call for undeliverable messages,
when the mandatory or immediate arguments to
publish() is used. This callback needs the following
signature: (exception, exchange, routing_key, message).
Note that the producer needs to drain events to use this feature.
|