Class SimpleStringConsumer

java.lang.Object
org.eso.ias.kafkautils.KafkaStringsConsumer
org.eso.ias.kafkautils.SimpleStringConsumer
All Implemented Interfaces:
Runnable, org.apache.kafka.clients.consumer.ConsumerRebalanceListener, KafkaStringsConsumer.StringsConsumer
Direct Known Subclasses:
ReplyKafkaConsumer

public class SimpleStringConsumer extends KafkaStringsConsumer implements KafkaStringsConsumer.StringsConsumer
/** Generic Kafka consumer to get strings from a kafka topic.

The strings are passed one at a time to the listener for further processing. This class is inefficient compared to KafkaStringsConsumer that allows to process bounce of events in one single call.

Author:
acaproni
  • Constructor Details

    • SimpleStringConsumer

      public SimpleStringConsumer(String servers, String topicName, String consumerID)
      Constructor
      Parameters:
      servers - The kafka servers to connect to
      topicName - The name of the topic to get events from
      consumerID - the ID of the consumer
  • Method Details