Record Class KafkaClusterResponse.PartitionDetail
java.lang.Object
java.lang.Record
io.micronaut.controlpanel.panels.kafka.KafkaClusterResponse.PartitionDetail
- Enclosing class:
KafkaClusterResponse
@Introspected
public static record KafkaClusterResponse.PartitionDetail(int partition, @Nullable KafkaClusterResponse.BrokerNode leader, List<KafkaClusterResponse.BrokerNode> replicas, List<KafkaClusterResponse.BrokerNode> isr, @Nullable Long beginningOffset, @Nullable Long endOffset, @Nullable Long sizeEstimate)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionPartitionDetail(int partition, @Nullable KafkaClusterResponse.BrokerNode leader, List<KafkaClusterResponse.BrokerNode> replicas, List<KafkaClusterResponse.BrokerNode> isr, @Nullable Long beginningOffset, @Nullable Long endOffset, @Nullable Long sizeEstimate) Creates an instance of aPartitionDetailrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable LongReturns the value of thebeginningOffsetrecord component.@Nullable LongReturns the value of theendOffsetrecord component.final 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.@Nullable KafkaClusterResponse.BrokerNodeleader()Returns the value of theleaderrecord component.intReturns the value of thepartitionrecord component.replicas()Returns the value of thereplicasrecord component.@Nullable LongReturns the value of thesizeEstimaterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PartitionDetail
public PartitionDetail(int partition, @Nullable KafkaClusterResponse.BrokerNode leader, List<KafkaClusterResponse.BrokerNode> replicas, List<KafkaClusterResponse.BrokerNode> isr, @Nullable Long beginningOffset, @Nullable Long endOffset, @Nullable Long sizeEstimate) Creates an instance of aPartitionDetailrecord class.- Parameters:
partition- the value for thepartitionrecord componentleader- the value for theleaderrecord componentreplicas- the value for thereplicasrecord componentisr- the value for theisrrecord componentbeginningOffset- the value for thebeginningOffsetrecord componentendOffset- the value for theendOffsetrecord componentsizeEstimate- the value for thesizeEstimaterecord component
-
-
Method Details
-
toString
-
hashCode
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
partition
public int partition()Returns the value of thepartitionrecord component.- Returns:
- the value of the
partitionrecord component
-
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
-
beginningOffset
Returns the value of thebeginningOffsetrecord component.- Returns:
- the value of the
beginningOffsetrecord component
-
endOffset
Returns the value of theendOffsetrecord component.- Returns:
- the value of the
endOffsetrecord component
-
sizeEstimate
Returns the value of thesizeEstimaterecord component.- Returns:
- the value of the
sizeEstimaterecord component
-