Class AsyncKafkaConsumer<K,V>

java.lang.Object
org.apache.kafka.clients.consumer.internals.AsyncKafkaConsumer<K,V>
All Implemented Interfaces:
Closeable, AutoCloseable, Consumer<K,V>, ConsumerDelegate<K,V>

public class AsyncKafkaConsumer<K,V> extends Object implements ConsumerDelegate<K,V>
This Consumer implementation uses an event handler to process application events so that the network I/O can be processed in a dedicated network thread. Visit this document for implementation detail.

Note: this Consumer implementation is part of the revised consumer group protocol from KIP-848. This class should not be invoked directly; users should instead create a KafkaConsumer as before. This consumer implements the new consumer group protocol and is intended to be the default in coming releases.