Bases: ProducerProto[NatsPublishCommand]
connect
connect(
connection: Any,
serializer: Optional[SerializerProto],
codec: Optional[CodecProto] = None,
) -> None
Source code in faststream/nats/publisher/producer.py
| def connect(
self,
connection: Any,
serializer: Optional["SerializerProto"],
codec: Optional["CodecProto"] = None,
) -> None: ...
|
disconnect
Source code in faststream/nats/publisher/producer.py
| def disconnect(self) -> None: ...
|
publish abstractmethod async
Source code in faststream/nats/publisher/producer.py
| @abstractmethod
async def publish(self, cmd: "NatsPublishCommand") -> Optional["PubAck"]: ...
|
request abstractmethod async
Source code in faststream/nats/publisher/producer.py
| @abstractmethod
async def request(self, cmd: "NatsPublishCommand") -> "Msg": ...
|
publish_batch async
Source code in faststream/nats/publisher/producer.py
| @override
async def publish_batch(self, cmd: "NatsPublishCommand") -> None:
msg = "NATS doesn't support publishing in batches."
raise FeatureNotSupportedException(msg)
|