RabbitExchange
faststream.rabbit.schemas.RabbitExchange
#
RabbitExchange(
name="",
type=DIRECT,
durable=False,
auto_delete=False,
declare=True,
arguments=None,
timeout=None,
robust=True,
bind_to=None,
bind_arguments=None,
routing_key="",
)
Bases: NameRequired
A class to represent a RabbitMQ exchange.
Initialize a RabbitExchange object.
PARAMETER | DESCRIPTION |
---|---|
name
|
RabbitMQ exchange name.
TYPE:
|
type
|
RabbitMQ exchange type.
TYPE:
|
durable
|
Whether the object is durable.
TYPE:
|
auto_delete
|
The exchange will be deleted after connection closed.
TYPE:
|
declare
|
Whether to exchange automatically or just connect to it.
TYPE:
|
arguments
|
Exchange declarationg arguments.
TYPE:
|
timeout
|
Send confirmation time from RabbitMQ.
TYPE:
|
robust
|
Whether to declare exchange object as restorable.
TYPE:
|
bind_to
|
Another
TYPE:
|
bind_arguments
|
Exchange-exchange binding options.
TYPE:
|
routing_key
|
Explicit binding routing key.
TYPE:
|