K - the class of the record keyV - the class of the record valuepublic interface IKafkaContinuousConsumer
KafkaContinuousConsumerBuilder class to create and configure your consumer.| Modifier and Type | Method and Description | 
|---|---|
void | 
close()
Close this consumer 
 | 
void | 
commit()
Commit all the offsets for all the partitions managed by your reader. 
 | 
int | 
nextMessages(Duration timeout)
Fetch incoming messages, if any. 
 | 
int nextMessages(Duration timeout)
This method is blocking. It encapsulate a call to the underlying KafkaConsumer poll. 
 If some records are
 fetched from your topic. It will invoke your IRecordHandler in a reentrant manner.
timeout - the blocking timeout in millisecondsvoid commit()
IPartition interface instead.void close()
Copyright © 2014–2023. All rights reserved.