Skip to content

AioPikaFastProducer

faststream.rabbit.publisher.producer.AioPikaFastProducer #

Bases: ProducerProto[RabbitPublishCommand]

connect #

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

disconnect #

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

publish abstractmethod async #

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

request abstractmethod async #

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

publish_batch async #

publish_batch(cmd: RabbitPublishCommand) -> None
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)