KvWatch
faststream.nats.KvWatch #
KvWatch(
bucket: str,
headers_only: bool = False,
include_history: bool = False,
ignore_deletes: bool = False,
meta_only: bool = False,
inactive_threshold: float | None = None,
timeout: float | None = 5.0,
declare: bool = True,
)
Bases: NameRequired
A class to represent a NATS kv watch subscription.
| PARAMETER | DESCRIPTION |
|---|---|
bucket | Bucket name. TYPE: |
headers_only | Whether to receive only headers (default is TYPE: |
include_history | Whether to include history (default is TYPE: |
ignore_deletes | Whether to ignore deletes (default is TYPE: |
meta_only | Whether to receive only metadata (default is TYPE: |
inactive_threshold ( | obj:
|
timeout ( | obj:
|
declare | Whether to create bucket automatically or just connect to it (default is TYPE: |
Source code in faststream/nats/schemas/kv_watch.py
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | |
validate classmethod #
validate(value: str | Self, **kwargs: Any) -> Self
validate(value: None, **kwargs: Any) -> None
validate(
value: str | Self | None, **kwargs: Any
) -> Self | None
Factory to create object.
Source code in faststream/_internal/proto.py
32 33 34 35 36 37 | |