Record Class Replicate
java.lang.Object
java.lang.Record
org.opendaylight.controller.cluster.raft.base.messages.Replicate
public record Replicate(long logIndex, boolean sendImmediate, ActorRef clientActor, Identifier identifier)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionReplicate
(long logIndex, boolean sendImmediate, ActorRef clientActor, Identifier identifier) Creates an instance of aReplicate
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theclientActor
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of theidentifier
record component.long
logIndex()
Returns the value of thelogIndex
record component.boolean
Returns the value of thesendImmediate
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Replicate
Creates an instance of aReplicate
record class.- Parameters:
logIndex
- the value for thelogIndex
record componentsendImmediate
- the value for thesendImmediate
record componentclientActor
- the value for theclientActor
record componentidentifier
- the value for theidentifier
record 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 thelogIndex
record component.- Returns:
- the value of the
logIndex
record component
-
sendImmediate
public boolean sendImmediate()Returns the value of thesendImmediate
record component.- Returns:
- the value of the
sendImmediate
record component
-
clientActor
Returns the value of theclientActor
record component.- Returns:
- the value of the
clientActor
record component
-
identifier
Returns the value of theidentifier
record component.- Returns:
- the value of the
identifier
record component
-