Package io.kroxylicious.proxy.topology
Record Class PartitionInfo
java.lang.Object
java.lang.Record
io.kroxylicious.proxy.topology.PartitionInfo
- Record Components:
leader- the partition leaderreplicas- all replicas of this partitionisr- the in-sync replicas
public record PartitionInfo(VirtualNode leader, List<VirtualNode> replicas, List<VirtualNode> isr)
extends Record
Partition topology: leader, replicas, and in-sync replicas.
All node references are virtual (already translated by the runtime).
-
Constructor Summary
ConstructorsConstructorDescriptionPartitionInfo(VirtualNode leader, List<VirtualNode> replicas, List<VirtualNode> isr) Defensive-copies the replica and ISR lists. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.isr()Returns the value of theisrrecord component.leader()Returns the value of theleaderrecord component.replicas()Returns the value of thereplicasrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PartitionInfo
Defensive-copies the replica and ISR lists.
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
leader
Returns the value of theleaderrecord component.- Returns:
- the value of the
leaderrecord component
-
replicas
Returns the value of thereplicasrecord component.- Returns:
- the value of the
replicasrecord component
-
isr
Returns the value of theisrrecord component.- Returns:
- the value of the
isrrecord component
-