Record Class Replicate
java.lang.Object
java.lang.Record
org.opendaylight.controller.cluster.raft.base.messages.Replicate
-
Constructor Summary
ConstructorsConstructorDescriptionReplicate(long logIndex, boolean sendImmediate, Identifier identifier) Creates an instance of aReplicaterecord 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.Returns the value of theidentifierrecord component.longlogIndex()Returns the value of thelogIndexrecord component.booleanReturns the value of thesendImmediaterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Replicate
Creates an instance of aReplicaterecord class.- Parameters:
logIndex- the value for thelogIndexrecord componentsendImmediate- the value for thesendImmediaterecord componentidentifier- the value for theidentifierrecord 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 '=='. -
logIndex
public long logIndex()Returns the value of thelogIndexrecord component.- Returns:
- the value of the
logIndexrecord component
-
sendImmediate
public boolean sendImmediate()Returns the value of thesendImmediaterecord component.- Returns:
- the value of the
sendImmediaterecord component
-
identifier
Returns the value of theidentifierrecord component.- Returns:
- the value of the
identifierrecord component
-