Skip to content

FakeAioPikaFastProducer

faststream.rabbit.publisher.producer.FakeAioPikaFastProducer #

Bases: AioPikaFastProducer

connect #

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

disconnect #

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

publish async #

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

request async #

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

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)