void measureLatencyNs(final Time time, final Runnable action, final Sensor sensor)
StreamsMetricsImpl
StreamsMetricsImpl is a concrete StreamsMetrics that…FIXME
StreamsMetricsImpl is created when:
|
Note
|
StreamsMetricsThreadImpl is a custom StreamsMetricsImpl that is used…FIXME…for efficiency.
|
measureLatencyNs Method
measureLatencyNs…FIXME
|
Note
|
measureLatencyNs is used when…FIXME
|
Recording Latency with Sensor — recordLatency Method
void recordLatency(Sensor sensor, long startNs, long endNs)
|
Note
|
recordLatency is part of StreamsMetrics Contract to record a latency with a Kafka Sensor.
|
recordLatency simply requests the input Kafka Sensor to record the latency (i.e. the difference between the input endNs and startNs timestamps).
Creating StreamsMetricsImpl Instance
StreamsMetricsImpl takes the following when created:
StreamsMetricsImpl initializes the internal registries and counters.