BatchBuilder
faststream.confluent.helpers.client.BatchBuilder #
A helper class to build a batch of messages to send to Kafka.
Initializes a new BatchBuilder instance.
Source code in faststream/confluent/helpers/client.py
append #
append(
*,
value: bytes | str | None = None,
key: bytes | str | None = None,
timestamp: int | None = None,
headers: list[tuple[str, bytes]] | None = None,
) -> None
Appends a message to the batch with optional timestamp, key, value, and headers.