Package

com.twitter.finatra.kafka

config

Permalink

package config

Visibility
  1. Public
  2. All

Type Members

  1. trait KafkaConfig extends AnyRef

    Permalink

    Base trait for everything Kafka config related.

    Base trait for everything Kafka config related. Kafka's configuration eventually ends up in a java.util.Properties (see ToKafkaProperties below).

    We keep it in a Map[String, String] for convenience until the last possible moment.

  2. trait KafkaConfigMethods[Self] extends KafkaConfig

    Permalink

    Base trait for making builders that set kafka config.

    Base trait for making builders that set kafka config. Gives you helpers for setting the config with values of different types:

    • Time
    • StorageUnit
    • class name

    If your builder would be useful as part of another builder, implement your methods in a method trait that extends KafkaConfigMethods, so that other builders can include you. See KafkaProducerConfigMethods and FinagleKafkaConsumerBuilderMethods for examples of this pattern.

    Self

    The type of your concrete builder. This lets all the convenience methods here and all the methods defined in intermediate traits return that type.

  3. trait ToKafkaProperties extends AnyRef

    Permalink

    Extend in your concrete configuration object so that the configMap can be converted to java.util.Properties.

    Extend in your concrete configuration object so that the configMap can be converted to java.util.Properties.

    See KafkaProducerConfig and FinagleKafkaConsumerConfig for examples of this pattern.

Ungrouped