LogicPublisher
faststream.confluent.publisher.usecase.LogicPublisher #
LogicPublisher(*, topic, partition, headers, reply_to, broker_middlewares, middlewares, schema_, title_, description_, include_in_schema)
Bases: PublisherUsecase[MsgType]
A class to publish messages to a Kafka topic.
Source code in faststream/confluent/publisher/usecase.py
publish abstractmethod
async
#
Publishes a message asynchronously.
Source code in faststream/broker/publisher/proto.py
setup #
schema #
Returns the schema of the API operation as a dictionary of channel names and channel objects.
add_middleware #
create abstractmethod
staticmethod
#
get_name abstractmethod
#
get_description #
get_schema abstractmethod
#
get_payloads #
Source code in faststream/broker/publisher/usecase.py
set_test #
Turn publisher to testing mode.
Source code in faststream/broker/publisher/usecase.py
reset_test #
add_prefix #
request async
#
request(message, topic='', *, key=None, partition=None, timestamp_ms=None, headers=None, correlation_id=None, timeout=0.5, _extra_middlewares=())