Record Class DevConsoleMetricsCollector.KafkaTopicPosition
java.lang.Object
java.lang.Record
org.apache.camel.component.kafka.consumer.devconsole.DevConsoleMetricsCollector.KafkaTopicPosition
- Enclosing interface:
DevConsoleMetricsCollector
-
Constructor Summary
ConstructorsConstructorDescriptionKafkaTopicPosition(String topic, int partition, long offset, int epoch) Creates an instance of aKafkaTopicPositionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintepoch()Returns the value of theepochrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longoffset()Returns the value of theoffsetrecord component.intReturns the value of thepartitionrecord component.topic()Returns the value of thetopicrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
KafkaTopicPosition
Creates an instance of aKafkaTopicPositionrecord class.- Parameters:
topic- the value for thetopicrecord componentpartition- the value for thepartitionrecord componentoffset- the value for theoffsetrecord componentepoch- the value for theepochrecord 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. -
topic
Returns the value of thetopicrecord component.- Returns:
- the value of the
topicrecord component
-
partition
public int partition()Returns the value of thepartitionrecord component.- Returns:
- the value of the
partitionrecord component
-
offset
public long offset()Returns the value of theoffsetrecord component.- Returns:
- the value of the
offsetrecord component
-
epoch
public int epoch()Returns the value of theepochrecord component.- Returns:
- the value of the
epochrecord component
-