org.locationtech.geomesa.kafka.consumer
Invokes a callback on a batch of messages and commits offsets
Consume a batch of records.
Consume a batch of records.
The response from this method will determine the continued processing of messages. If Commit
is returned, the batch is considered complete and won't be presented again. If Continue
is
returned, the batch will be presented again in the future, and more messages will be read off the topic
in the meantime. If Pause
is returned, the batch will be presented again in the future, but
no more messages will be read off the topic in the meantime.
This method should return in a reasonable amount of time. If too much time is spent processing messages, consumers may be considered inactive and be dropped from processing. See https://kafka.apache.org/26/javadoc/org/apache/kafka/clients/consumer/KafkaConsumer.html
Note: if there is an error committing the batch or something else goes wrong, some messages may be repeated in a subsequent call, regardless of the response from this method
records
commit, continue, or pause
Consumer that will process messages in batch, with guaranteed at-least-once processing