Class KafkaSource<V>

java.lang.Object
com.arpnetworking.metrics.common.sources.BaseSource
com.arpnetworking.metrics.common.sources.KafkaSource<V>
Type Parameters:
V - the type of data of value in kafka ConsumerRecords
All Implemented Interfaces:
com.arpnetworking.commons.observer.Observable, Source

public final class KafkaSource<V> extends BaseSource
Produce instances of Record from the values of entries from a Kafka topic. The key from the entries gets discarded
Author:
Joey Jackson (jjackson at dropbox dot com)
  • Method Details

    • start

      public void start()
      Description copied from interface: Source
      Called to allow the source to start producing records.
    • stop

      public void stop()
      Description copied from interface: Source
      Called to allow the source to clean-up. No further records should be produced.
    • toLogValue

      public Object toLogValue()
      Generate a Steno log compatible representation.
      Overrides:
      toLogValue in class BaseSource
      Returns:
      Steno log compatible representation.
    • toString

      public String toString()
      Overrides:
      toString in class BaseSource