Interface KafkaRecordBuilder


  • @DoNotImplement
    public interface KafkaRecordBuilder
    The KafkaRecordBuilder enables the creation of KafkaRecords via its fluent API.

    All data in a KafkaRecord except the topic is optional. Ensure that you set a topic via the topic(String) method before you call build().

    The internal state of this interface can only be changed via its methods. All arguments, that have mutable data types, are deep copied before the setting method returns.

    Since:
    4.4.0