Guest User

Untitled

a guest
Jan 18th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. kafkaConsumer.subscribe(topicNameList , new HandleRebalance())
  2. String kafkaMessages = null
  3. try{
  4. while(true){
  5. ConsumerRecords kafkaRecords
  6. kafkaRecords = kafkaConsumer.poll(100)
  7. for(ConsumerRecord record: kafkaRecords){
  8. partition = record.partition()
  9. offset = record.offset()
  10. topicName = record.topic()
  11. Object message = record.value()
  12. }
Add Comment
Please, Sign In to add comment