ObjWatch
faststream.nats.ObjWatch #
ObjWatch(
ignore_deletes: bool = False,
include_history: bool = False,
meta_only: bool = False,
timeout: float = 5.0,
declare: bool = True,
)
A class to represent a NATS object storage watch subscription.
| PARAMETER | DESCRIPTION |
|---|---|
ignore_deletes | Ignore delete events (default is TYPE: |
include_history | Include history (default is TYPE: |
meta_only | Only metadata. (default is TYPE: |
timeout | The timeout for the watch in seconds (default is TYPE: |
declare | Whether to create object storage automatically or just connect to it (default is TYPE: |
Source code in faststream/nats/schemas/obj_watch.py
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | |
validate classmethod #
validate(value: Literal[True]) -> ObjWatch
validate(value: Literal[False]) -> None
Source code in faststream/nats/schemas/obj_watch.py
55 56 57 58 59 60 61 | |