Skip to content

FakeConfluentFastProducer

faststream.confluent.publisher.producer.FakeConfluentFastProducer #

Bases: AsyncConfluentFastProducer

connect #

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

disconnect async #

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

flush async #

flush()
Source code in faststream/confluent/publisher/producer.py
async def flush(self) -> None:
    raise NotImplementedError

ping async #

ping(timeout)
Source code in faststream/confluent/publisher/producer.py
async def ping(self, timeout: float) -> bool:
    raise NotImplementedError

publish async #

publish(cmd)
Source code in faststream/confluent/publisher/producer.py
@override
async def publish(
    self,
    cmd: "KafkaPublishCommand",
) -> "asyncio.Future[Message | None] | Message | None":
    raise NotImplementedError

publish_batch async #

publish_batch(cmd)
Source code in faststream/confluent/publisher/producer.py
@override
async def publish_batch(self, cmd: "KafkaPublishCommand") -> None:
    raise NotImplementedError

request async #

request(cmd)
Source code in faststream/confluent/publisher/producer.py
@override
async def request(self, cmd: "KafkaPublishCommand") -> Any:
    msg = "Kafka doesn't support `request` method without test client."
    raise FeatureNotSupportedException(msg)