public class HotPartitionSensors extends Object
TopicPartition.| Constructor and Description |
|---|
HotPartitionSensors(TenantMetrics.TenantMetricsContext context,
org.apache.kafka.common.metrics.Metrics metrics,
HotPartitionSensorBuilder hotPartitionSensorBuilder) |
| Modifier and Type | Method and Description |
|---|---|
void |
recordHotPartitionIn(org.apache.kafka.common.TopicPartition tp,
long currentTimeMs)
Marks the given partition as hot ingress-wise at the given timestamp.
|
void |
recordHotPartitionOut(org.apache.kafka.common.TopicPartition tp,
long currentTimeMs)
Marks the given partition as hot egress-wise at the given timestamp.
|
public HotPartitionSensors(TenantMetrics.TenantMetricsContext context, org.apache.kafka.common.metrics.Metrics metrics, HotPartitionSensorBuilder hotPartitionSensorBuilder)
public void recordHotPartitionIn(org.apache.kafka.common.TopicPartition tp,
long currentTimeMs)
public void recordHotPartitionOut(org.apache.kafka.common.TopicPartition tp,
long currentTimeMs)