Record Class KafkaClusterResponse.MessageRecord
java.lang.Object
java.lang.Record
io.micronaut.controlpanel.panels.kafka.KafkaClusterResponse.MessageRecord
- Enclosing class:
KafkaClusterResponse
@Introspected
public static record KafkaClusterResponse.MessageRecord(long offset, long timestamp, String timestampType, @Nullable KafkaClusterResponse.RenderedPayload key, @Nullable KafkaClusterResponse.RenderedPayload value, List<KafkaClusterResponse.MessageHeader> headers, int partition)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionMessageRecord(long offset, long timestamp, String timestampType, @Nullable KafkaClusterResponse.RenderedPayload key, @Nullable KafkaClusterResponse.RenderedPayload value, List<KafkaClusterResponse.MessageHeader> headers, int partition) Creates an instance of aMessageRecordrecord class. -
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.headers()Returns the value of theheadersrecord component.@Nullable KafkaClusterResponse.RenderedPayloadkey()Returns the value of thekeyrecord component.longoffset()Returns the value of theoffsetrecord component.intReturns the value of thepartitionrecord component.longReturns the value of thetimestamprecord component.Returns the value of thetimestampTyperecord component.final StringtoString()Returns a string representation of this record class.@Nullable KafkaClusterResponse.RenderedPayloadvalue()Returns the value of thevaluerecord component.
-
Constructor Details
-
MessageRecord
public MessageRecord(long offset, long timestamp, String timestampType, @Nullable KafkaClusterResponse.RenderedPayload key, @Nullable KafkaClusterResponse.RenderedPayload value, List<KafkaClusterResponse.MessageHeader> headers, int partition) Creates an instance of aMessageRecordrecord class.- Parameters:
offset- the value for theoffsetrecord componenttimestamp- the value for thetimestamprecord componenttimestampType- the value for thetimestampTyperecord componentkey- the value for thekeyrecord componentvalue- the value for thevaluerecord componentheaders- the value for theheadersrecord componentpartition- the value for thepartitionrecord 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. -
offset
public long offset()Returns the value of theoffsetrecord component.- Returns:
- the value of the
offsetrecord component
-
timestamp
public long timestamp()Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-
timestampType
Returns the value of thetimestampTyperecord component.- Returns:
- the value of the
timestampTyperecord component
-
key
Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
headers
Returns the value of theheadersrecord component.- Returns:
- the value of the
headersrecord component
-
partition
public int partition()Returns the value of thepartitionrecord component.- Returns:
- the value of the
partitionrecord component
-