OneTryWatcher
faststream.broker.push_back_watcher.OneTryWatcher #
Bases: BaseWatcher
A class to watch and track messages.
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. |
Source code in faststream/broker/push_back_watcher.py
add #
add(message_id: str) -> None
Add a message.
PARAMETER | DESCRIPTION |
---|---|
message_id | ID of the message to be added TYPE: |
RETURNS | DESCRIPTION |
---|---|
None | None |