public class HotPartitionManager extends Object implements org.apache.kafka.common.Configurable
| Constructor and Description |
|---|
HotPartitionManager(org.apache.kafka.common.utils.Time time) |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(Map<String,?> configs) |
void |
mayRecordHotPartitionIn(org.apache.kafka.common.metrics.Metrics metrics,
TenantMetrics.TenantMetricsContext context,
org.apache.kafka.common.TopicPartition tp,
long timeMs)
Records the existence of hot partition ingress-wise for the given partition.
|
void |
mayRecordHotPartitionOut(org.apache.kafka.common.metrics.Metrics metrics,
TenantMetrics.MetricsRequestContext context,
org.apache.kafka.common.TopicPartition tp,
long timeMs)
Records the existence of hot partition egress-wise for the given partition.
|
public HotPartitionManager(org.apache.kafka.common.utils.Time time)
public void configure(Map<String,?> configs)
configure in interface org.apache.kafka.common.Configurablepublic void mayRecordHotPartitionIn(org.apache.kafka.common.metrics.Metrics metrics,
TenantMetrics.TenantMetricsContext context,
org.apache.kafka.common.TopicPartition tp,
long timeMs)
metrics - broker-wide metric registrycontext - request context to find the tenant and client idtp - topic partition to check and record hot partitiontimeMs - current timestamp in millisecondspublic void mayRecordHotPartitionOut(org.apache.kafka.common.metrics.Metrics metrics,
TenantMetrics.MetricsRequestContext context,
org.apache.kafka.common.TopicPartition tp,
long timeMs)
metrics - broker-wide metric registrycontext - request context to find the tenant and client idtp - topic partition to check and record hot partitiontimeMs - current timestamp in milliseconds