Package

com.twitter.finatra.kafka

producers

Permalink

package producers

Visibility
  1. Public
  2. All

Type Members

  1. class FinagleKafkaProducer[K, V] extends KafkaProducerBase[K, V]

    Permalink

    A standard implementation of KafkaProducerBase that forwards events in key/value pairs to org.apache.kafka.clients.producer.KafkaProducer

    A standard implementation of KafkaProducerBase that forwards events in key/value pairs to org.apache.kafka.clients.producer.KafkaProducer

    K

    type of the key in key/value pairs to be published to Kafka

    V

    type of the value in key/value pairs to be published to Kafka

  2. case class FinagleKafkaProducerBuilder[K, V](config: FinagleKafkaProducerConfig[K, V] = FinagleKafkaProducerConfig[K, V]()) extends KafkaProducerConfigMethods[FinagleKafkaProducerBuilder[K, V]] with Product with Serializable

    Permalink
  3. case class FinagleKafkaProducerConfig[K, V](kafkaProducerConfig: KafkaProducerConfig = KafkaProducerConfig(), keySerializer: Option[Serializer[K]] = None, valueSerializer: Option[Serializer[V]] = None, includeNodeMetrics: Boolean = false, statsReceiver: StatsReceiver = LoadedStatsReceiver) extends KafkaConfig with ToKafkaProperties with Product with Serializable

    Permalink
  4. trait KafkaProducerBase[K, V] extends Closable with Logging

    Permalink

    An interface for publishing events in key/value pairs to Kafka and returning a com.twitter.util.Future

    An interface for publishing events in key/value pairs to Kafka and returning a com.twitter.util.Future

    K

    type of the key in key/value pairs to be published to Kafka

    V

    type of the value in key/value pairs to be published to Kafka

  5. case class KafkaProducerConfig extends KafkaProducerConfigMethods[KafkaProducerConfig] with ToKafkaProperties with Product with Serializable

    Permalink
  6. trait KafkaProducerConfigMethods[Self] extends KafkaConfigMethods[Self] with Logging

    Permalink
  7. class NullKafkaProducer[K, V] extends KafkaProducerBase[K, V]

    Permalink

    A no-op KafkaProducerBase.

    A no-op KafkaProducerBase. No network connection is created and events are discarded, making this producer useful in unit tests and as defaults in situations where event publishing is not needed.

    K

    type of the key in key/value pairs to be published to Kafka

    V

    type of the value in key/value pairs to be published to Kafka

  8. class TracingKafkaProducer[K, V] extends KafkaProducer[K, V] with Logging

    Permalink

    An extension of KafkaProducer with Zipkin tracing to trace the records sent to Kafka.

    An extension of KafkaProducer with Zipkin tracing to trace the records sent to Kafka. This is inspired by openzipkin's brave instrumentation. We need a custom implementation and not a ProducerInterceptor because to enable end-to-end tracing of the records sent to Kafka, we need the same trace id in the callback which is not possible in the interceptor because it's called in a background thread which is not Finagle controlled.

    K

    type of Key

    V

    type of value

Value Members

  1. object KafkaProducerConfig extends Serializable

    Permalink
  2. object TracingKafkaProducer

    Permalink

Ungrouped