Class LegacyKafkaConsumer<K,V>

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

public class LegacyKafkaConsumer<K,V> extends Object implements ConsumerDelegate<K,V>
A client that consumes records from a Kafka cluster using the classic group protocol. In this implementation, all network I/O happens in the thread of the application making the call.

Note: per its name, this implementation is left for backward compatibility purposes. The updated consumer group protocol (from KIP-848) introduces allows users continue using the legacy "classic" group protocol. This class should not be invoked directly; users should instead create a KafkaConsumer as before.