Record Class LogAppendEntryMetadata
java.lang.Object
java.lang.Record
io.camunda.zeebe.logstreams.impl.log.LogAppendEntryMetadata
public record LogAppendEntryMetadata(RecordType recordType, ValueType valueType, Intent intent)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionLogAppendEntryMetadata(RecordType recordType, ValueType valueType, Intent intent) Creates an instance of aLogAppendEntryMetadatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic List<LogAppendEntryMetadata> copyMetadata(List<LogAppendEntry> entries) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intent()Returns the value of theintentrecord component.Returns the value of therecordTyperecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thevalueTyperecord component.
-
Constructor Details
-
LogAppendEntryMetadata
Creates an instance of aLogAppendEntryMetadatarecord class.- Parameters:
recordType- the value for therecordTyperecord componentvalueType- the value for thevalueTyperecord componentintent- the value for theintentrecord component
-
-
Method Details
-
copyMetadata
-
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). -
recordType
Returns the value of therecordTyperecord component.- Returns:
- the value of the
recordTyperecord component
-
valueType
Returns the value of thevalueTyperecord component.- Returns:
- the value of the
valueTyperecord component
-
intent
Returns the value of theintentrecord component.- Returns:
- the value of the
intentrecord component
-