BatchBuilder
faststream.confluent.helpers.client.BatchBuilder #
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
459 460 461 | |
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.
Source code in faststream/confluent/helpers/client.py
463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 | |