Skip to content

AioPikaFastProducer

faststream.rabbit.publisher.producer.AioPikaFastProducer #

Bases: ProducerProto[RabbitPublishCommand]

connect #

connect(serializer=None)
Source code in faststream/rabbit/publisher/producer.py
def connect(self, serializer: Optional["SerializerProto"] = None) -> None: ...

disconnect #

disconnect()
Source code in faststream/rabbit/publisher/producer.py
def disconnect(self) -> None: ...

publish abstractmethod async #

publish(cmd)
Source code in faststream/rabbit/publisher/producer.py
@abstractmethod
async def publish(
    self,
    cmd: "RabbitPublishCommand",
) -> Optional["aiormq.abc.ConfirmationFrameType"]: ...

request abstractmethod async #

request(cmd)
Source code in faststream/rabbit/publisher/producer.py
@abstractmethod
async def request(self, cmd: "RabbitPublishCommand") -> "IncomingMessage": ...

publish_batch async #

publish_batch(cmd)
Source code in faststream/rabbit/publisher/producer.py
@override
async def publish_batch(self, cmd: "RabbitPublishCommand") -> None:
    msg = "RabbitMQ doesn't support publishing in batches."
    raise FeatureNotSupportedException(msg)