RabbitQueue
faststream.rabbit.RabbitQueue #
RabbitQueue(
name: str,
durable: bool = False,
exclusive: bool = False,
passive: bool = False,
auto_delete: bool = False,
arguments: Optional[AnyDict] = None,
timeout: TimeoutType = None,
robust: bool = True,
bind_arguments: Optional[AnyDict] = None,
routing_key: str = "",
)
Bases: NameRequired
A class to represent a RabbitMQ queue.
METHOD | DESCRIPTION |
---|---|
__hash__ | returns the hash value of the queue |
routing | returns the routing key of the queue |
__init__ | initializes the RabbitQueue object with the given parameters |
Note
The above docstring is autogenerated by docstring-gen library (https://docstring-gen.airt.ai)
Initialize a class object.
PARAMETER | DESCRIPTION |
---|---|
name | The name of the object. TYPE: |
durable | Whether the object is durable. Defaults to False. TYPE: |
exclusive | Whether the object is exclusive. Defaults to False. TYPE: |
passive | Whether the object is passive. Defaults to False. TYPE: |
auto_delete | Whether the object is auto delete. Defaults to False. TYPE: |
arguments | Additional arguments for the object. Defaults to None. TYPE: |
timeout | Timeout for the object. Defaults to None. TYPE: |
robust | Whether the object is robust. Defaults to True. TYPE: |
bind_arguments | Bind arguments for the object. Defaults to None. TYPE: |
routing_key | Routing key for the object. Defaults to "". TYPE: |
Note
The above docstring is autogenerated by docstring-gen library (https://docstring-gen.airt.ai)
Source code in faststream/rabbit/shared/schemas.py
Config #
validate classmethod
#
Validates a value.
PARAMETER | DESCRIPTION |
---|---|
value | The value to be validated. |
RETURNS | DESCRIPTION |
---|---|
Optional[NameRequiredCls] | The validated value. |
Note
The above docstring is autogenerated by docstring-gen library (https://docstring-gen.airt.ai)