August 2017
Beginner to intermediate
278 pages
6h 40m
English
Producer accepts the ProducerRecord object to send records to the .ProducerRecord topic. It contains a topic name, partition number, timestamp, key, and value. Partition number, timestamp, and key are optional parameters, but the topic to which data will be sent and value that contains the data is mandatory.
Here is the producerRecord in Java:
ProducerRecord producerRecord = new ProducerRecord ...
Read now
Unlock full access