PubAck
nats.js.api.PubAck dataclass #
PubAck(
stream: str,
seq: int,
domain: Optional[str] = None,
duplicate: Optional[bool] = None,
batch_id: Optional[str] = None,
batch_size: Optional[int] = None,
val: Optional[str] = None,
)
Bases: Base
PubAck is the response of publishing a message to JetStream.
from_response classmethod #
from_response(resp: Dict[str, Any]) -> PubAck
Source code in nats/js/api.py
194 195 196 197 198 199 200 201 | |
as_dict #
as_dict() -> Dict[str, object]
Source code in nats/js/api.py
203 204 205 206 207 208 209 | |
evolve #
evolve(**params) -> _B
Return a copy of the instance with the passed values replaced.
Source code in nats/js/api.py
157 158 159 | |