Class HotPartitionSensors
java.lang.Object
io.confluent.kafka.multitenant.metrics.HotPartitionSensors
Helper class to create and access the hot partition sensors for a
TopicPartition.-
Constructor Summary
ConstructorsConstructorDescriptionHotPartitionSensors(TenantMetrics.TenantMetricsContext context, org.apache.kafka.common.metrics.Metrics metrics, HotPartitionSensorBuilder hotPartitionSensorBuilder) -
Method Summary
Modifier and TypeMethodDescriptionvoidrecordHotPartitionIn(org.apache.kafka.common.TopicPartition tp, long currentTimeMs) Marks the given partition as hot ingress-wise at the given timestamp.voidrecordHotPartitionOut(org.apache.kafka.common.TopicPartition tp, long currentTimeMs) Marks the given partition as hot egress-wise at the given timestamp.
-
Constructor Details
-
HotPartitionSensors
public HotPartitionSensors(TenantMetrics.TenantMetricsContext context, org.apache.kafka.common.metrics.Metrics metrics, HotPartitionSensorBuilder hotPartitionSensorBuilder)
-
-
Method Details
-
recordHotPartitionIn
public void recordHotPartitionIn(org.apache.kafka.common.TopicPartition tp, long currentTimeMs) Marks the given partition as hot ingress-wise at the given timestamp. -
recordHotPartitionOut
public void recordHotPartitionOut(org.apache.kafka.common.TopicPartition tp, long currentTimeMs) Marks the given partition as hot egress-wise at the given timestamp.
-