Class KafkaConsumerReadTask<KafkaKeyT,​KafkaValueT,​ClientKeyT,​ClientValueT>


  • public class KafkaConsumerReadTask<KafkaKeyT,​KafkaValueT,​ClientKeyT,​ClientValueT>
    extends Object
    State for tracking the progress of a single consumer read request.

    To support embedded formats that require translation between the format deserialized by the Kafka decoder and the format returned in the ConsumerRecord entity sent back to the client, this class uses two pairs of key-value generic type parameters: KafkaK/KafkaV is the format returned by the Kafka consumer's decoder/deserializer, ClientK/ClientV is the format returned to the client in the HTTP response. In some cases these may be identical.