Package io.atomix.raft.storage.log.entry
Record Class InitialEntry
java.lang.Object
java.lang.Record
io.atomix.raft.storage.log.entry.InitialEntry
- All Implemented Interfaces:
RaftEntry
Indicates a leader change has occurred.
The InitialEntry is logged by a leader at the beginning of its term to indicate that a
leadership change has occurred. Initialize entries are always the first entry to be committed at
the start of a leader's term.
-
Constructor Summary
Constructors -
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.toSerializable(long term, RaftEntrySerializer serializer) final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
InitialEntry
public InitialEntry()Creates an instance of aInitialEntryrecord class.
-
-
Method Details
-
toSerializable
- Specified by:
toSerializablein interfaceRaftEntry
-
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.
-