Package com.bakdata.kafka
Class SenderBuilder.SimpleProducerRecord<K,V>
java.lang.Object
com.bakdata.kafka.SenderBuilder.SimpleProducerRecord<K,V>
- Type Parameters:
K- type of keysV- type of values
- Enclosing class:
- SenderBuilder<K,
V>
Represents a
ProducerRecord without topic assignment-
Constructor Summary
ConstructorsConstructorDescriptionSimpleProducerRecord(K key, V value) Create a newSimpleProducerRecordwithout timestamp and headersSimpleProducerRecord(K key, V value, Iterable<org.apache.kafka.common.header.Header> headers) Create a newSimpleProducerRecordwithout timestampSimpleProducerRecord(K key, V value, Instant timestamp) Create a newSimpleProducerRecordwithout headersSimpleProducerRecord(K key, V value, Instant timestamp, Iterable<org.apache.kafka.common.header.Header> headers) -
Method Summary
-
Constructor Details
-
SimpleProducerRecord
Create a newSimpleProducerRecordwithout timestamp and headers- Parameters:
key- keyvalue- value
-
SimpleProducerRecord
Create a newSimpleProducerRecordwithout headers- Parameters:
key- keyvalue- valuetimestamp- timestamp
-
SimpleProducerRecord
public SimpleProducerRecord(K key, V value, Iterable<org.apache.kafka.common.header.Header> headers) Create a newSimpleProducerRecordwithout timestamp- Parameters:
key- keyvalue- valueheaders- headers
-
SimpleProducerRecord
-
-
Method Details