EndlessWatcher
faststream.broker.push_back_watcher.EndlessWatcher #
Bases: BaseWatcher
Initialize the class.
PARAMETER | DESCRIPTION |
---|---|
max_tries | Maximum number of tries allowed TYPE: |
logger | Optional logger object |
RAISES | DESCRIPTION |
---|---|
NotImplementedError | If the method is not implemented in the subclass. |
Note
The above docstring is autogenerated by docstring-gen library (https://docstring-gen.airt.ai)
Source code in faststream/broker/push_back_watcher.py
add #
Add a message to the list.
PARAMETER | DESCRIPTION |
---|---|
message_id | ID of the message to be added TYPE: |
RETURNS | DESCRIPTION |
---|---|
None | None |
Note
The above docstring is autogenerated by docstring-gen library (https://docstring-gen.airt.ai)
Source code in faststream/broker/push_back_watcher.py
is_max #
Check if a message is the maximum.
PARAMETER | DESCRIPTION |
---|---|
message_id | ID of the message to check TYPE: |
RETURNS | DESCRIPTION |
---|---|
bool | True if the message is the maximum, False otherwise |
Note
The above docstring is autogenerated by docstring-gen library (https://docstring-gen.airt.ai)
Source code in faststream/broker/push_back_watcher.py
Last update: 2023-11-13