Record Class KafkaClusterResponse.MessagePage
java.lang.Object
java.lang.Record
io.micronaut.controlpanel.panels.kafka.KafkaClusterResponse.MessagePage
- Enclosing class:
KafkaClusterResponse
-
Constructor Summary
ConstructorsConstructorDescriptionMessagePage(String topic, int partition, String mode, int limit, @Nullable Long startOffset, @Nullable Long endOffset, List<KafkaClusterResponse.MessageRecord> records) Creates an instance of aMessagePagerecord class. -
Method Summary
Modifier and TypeMethodDescription@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.intlimit()Returns the value of thelimitrecord component.mode()Returns the value of themoderecord component.intReturns the value of thepartitionrecord component.records()Returns the value of therecordsrecord component.@Nullable LongReturns the value of thestartOffsetrecord component.topic()Returns the value of thetopicrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MessagePage
public MessagePage(String topic, int partition, String mode, int limit, @Nullable Long startOffset, @Nullable Long endOffset, List<KafkaClusterResponse.MessageRecord> records) Creates an instance of aMessagePagerecord class.- Parameters:
topic- the value for thetopicrecord componentpartition- the value for thepartitionrecord componentmode- the value for themoderecord componentlimit- the value for thelimitrecord componentstartOffset- the value for thestartOffsetrecord componentendOffset- the value for theendOffsetrecord componentrecords- the value for therecordsrecord 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
-
mode
Returns the value of themoderecord component.- Returns:
- the value of the
moderecord component
-
limit
public int limit()Returns the value of thelimitrecord component.- Returns:
- the value of the
limitrecord component
-
startOffset
Returns the value of thestartOffsetrecord component.- Returns:
- the value of the
startOffsetrecord component
-
endOffset
Returns the value of theendOffsetrecord component.- Returns:
- the value of the
endOffsetrecord component
-
records
Returns the value of therecordsrecord component.- Returns:
- the value of the
recordsrecord component
-