RabbitQueue
faststream.rabbit.schemas.queue.RabbitQueue #
RabbitQueue(
name: str,
queue_type: Literal[CLASSIC] = CLASSIC,
durable: bool = EMPTY,
exclusive: bool = False,
declare: bool = True,
passive: bool = EMPTY,
auto_delete: bool = False,
arguments: Optional[ClassicQueueArgs] = None,
timeout: TimeoutType = None,
robust: bool = True,
bind_arguments: Optional[AnyDict] = None,
routing_key: str = "",
)
RabbitQueue(
name: str,
queue_type: Literal[QUORUM],
durable: Literal[True],
exclusive: bool = False,
declare: bool = True,
passive: bool = EMPTY,
auto_delete: bool = False,
arguments: Optional[QuorumQueueArgs] = None,
timeout: TimeoutType = None,
robust: bool = True,
bind_arguments: Optional[AnyDict] = None,
routing_key: str = "",
)
RabbitQueue(
name: str,
queue_type: Literal[STREAM],
durable: Literal[True],
exclusive: bool = False,
declare: bool = True,
passive: bool = EMPTY,
auto_delete: bool = False,
arguments: Optional[StreamQueueArgs] = None,
timeout: TimeoutType = None,
robust: bool = True,
bind_arguments: Optional[AnyDict] = None,
routing_key: str = "",
)
RabbitQueue(
name,
queue_type=CLASSIC,
durable=EMPTY,
exclusive=False,
declare=True,
passive=EMPTY,
auto_delete=False,
arguments=None,
timeout=None,
robust=True,
bind_arguments=None,
routing_key="",
)
Bases: NameRequired
A class to represent a RabbitMQ queue.
You can find information about all options in the official RabbitMQ documentation:
https://www.rabbitmq.com/docs/queues
Initialize the RabbitMQ queue.
:param name: RabbitMQ queue name. :param durable: Whether the object is durable. :param exclusive: The queue can be used only in the current connection and will be deleted after connection closed. :param declare: Whether to queue automatically or just connect to it. If you want to connect to an existing queue, set this to False
. Copy of passive
aio-pike option. :param passive: Do not create queue automatically. :param auto_delete: The queue will be deleted after connection closed. :param arguments: Queue declaration arguments. You can find information about them in the official RabbitMQ documentation: https://www.rabbitmq.com/docs/queues#optional-arguments :param timeout: Send confirmation time from RabbitMQ. :param robust: Whether to declare queue object as restorable. :param bind_arguments: Queue-exchange binding options. :param routing_key: Explicit binding routing key. Uses name if not present.
Source code in faststream/rabbit/schemas/queue.py
131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 |
|