Record Class LogAppendEntryImpl
java.lang.Object
java.lang.Record
io.camunda.zeebe.logstreams.impl.log.LogAppendEntryImpl
- All Implemented Interfaces:
LogAppendEntry
public record LogAppendEntryImpl(long key, int sourceIndex, RecordMetadata recordMetadata, UnifiedRecordValue recordValue)
extends Record
implements LogAppendEntry
-
Constructor Summary
ConstructorsConstructorDescriptionLogAppendEntryImpl(long key, int sourceIndex, RecordMetadata recordMetadata, UnifiedRecordValue recordValue) Creates an instance of aLogAppendEntryImplrecord 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.longkey()Returns the value of thekeyrecord component.Returns the value of therecordMetadatarecord component.Returns the value of therecordValuerecord component.intReturns the value of thesourceIndexrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.camunda.zeebe.logstreams.log.LogAppendEntry
getLength, isProcessed
-
Constructor Details
-
LogAppendEntryImpl
public LogAppendEntryImpl(long key, int sourceIndex, RecordMetadata recordMetadata, UnifiedRecordValue recordValue) Creates an instance of aLogAppendEntryImplrecord class.- Parameters:
key- the value for thekeyrecord componentsourceIndex- the value for thesourceIndexrecord componentrecordMetadata- the value for therecordMetadatarecord componentrecordValue- the value for therecordValuerecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
key
public long key()Returns the value of thekeyrecord component.- Specified by:
keyin interfaceLogAppendEntry- Returns:
- the value of the
keyrecord component
-
sourceIndex
public int sourceIndex()Returns the value of thesourceIndexrecord component.- Specified by:
sourceIndexin interfaceLogAppendEntry- Returns:
- the value of the
sourceIndexrecord component
-
recordMetadata
Returns the value of therecordMetadatarecord component.- Specified by:
recordMetadatain interfaceLogAppendEntry- Returns:
- the value of the
recordMetadatarecord component
-
recordValue
Returns the value of therecordValuerecord component.- Specified by:
recordValuein interfaceLogAppendEntry- Returns:
- the value of the
recordValuerecord component
-