Package

com.twitter.finatra.kafka

interceptors

Permalink

package interceptors

Visibility
  1. Public
  2. All

Type Members

  1. class InstanceMetadataProducerInterceptor extends ProducerInterceptor[Any, Any]

    Permalink

    An interceptor that includes metadata about specific instance in record headers.

    An interceptor that includes metadata about specific instance in record headers.

    instance_key is a configurable header serialized with Serdes.StringSerde. The value of the header is configured by kafka.instance.key application flag. Only if the flag is set will a header key/value be serialized into the record.

  2. class MonitoringConsumerInterceptor extends ConsumerInterceptor[Any, Any]

    Permalink

    An interceptor that looks for the publish_time header and record timestamp and calculates how much time has passed since the each of those times and updates stats for each.

  3. class PublishTimeProducerInterceptor extends ProducerInterceptor[Any, Any]

    Permalink

    An interceptor that puts a header on each Kafka record indicating when the record was published.

Ungrouped