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 newSimpleProducerRecord
without timestamp and headersSimpleProducerRecord
(K key, V value, Iterable<org.apache.kafka.common.header.Header> headers) Create a newSimpleProducerRecord
without timestampSimpleProducerRecord
(K key, V value, Instant timestamp) Create a newSimpleProducerRecord
without headersSimpleProducerRecord
(K key, V value, Instant timestamp, Iterable<org.apache.kafka.common.header.Header> headers) -
Method Summary
-
Constructor Details
-
SimpleProducerRecord
Create a newSimpleProducerRecord
without timestamp and headers- Parameters:
key
- keyvalue
- value
-
SimpleProducerRecord
Create a newSimpleProducerRecord
without headers- Parameters:
key
- keyvalue
- valuetimestamp
- timestamp
-
SimpleProducerRecord
public SimpleProducerRecord(K key, V value, Iterable<org.apache.kafka.common.header.Header> headers) Create a newSimpleProducerRecord
without timestamp- Parameters:
key
- keyvalue
- valueheaders
- headers
-
SimpleProducerRecord
-
-
Method Details