public class ReplicaEntity extends Entity<String>
Entity
class representing a Replica used by MetricSampleAggregator
Constructor and Description |
---|
ReplicaEntity(org.apache.kafka.common.TopicPartition tp,
int brokerId,
boolean isLeader) |
Modifier and Type | Method and Description |
---|---|
int |
brokerId() |
boolean |
equals(Object other)
The entity will be used as a key of a map.
|
String |
group()
Note that the group will be used as keys of maps.
|
int |
hashCode()
The entity will be used as a key of a map.
|
boolean |
isLeader() |
org.apache.kafka.common.TopicPartition |
tp() |
public ReplicaEntity(org.apache.kafka.common.TopicPartition tp, int brokerId, boolean isLeader)
public String group()
Entity
public org.apache.kafka.common.TopicPartition tp()
public int brokerId()
public boolean isLeader()
public int hashCode()
Entity