Record Class InstallSnapshotRequest
java.lang.Object
java.lang.Record
org.j7m.middleware.api.consensus.InstallSnapshotRequest
- Record Components:
groupId- group idterm- leader termleaderId- leader idsnapshot- snapshot payload
- All Implemented Interfaces:
Serializable
public record InstallSnapshotRequest(ConsensusGroupId groupId, ConsensusTerm term, ConsensusNodeId leaderId, ConsensusSnapshot snapshot)
extends Record
implements Serializable
Snapshot installation request. The Phase 6.5 baseline rejects it as unsupported.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInstallSnapshotRequest(ConsensusGroupId groupId, ConsensusTerm term, ConsensusNodeId leaderId, ConsensusSnapshot snapshot) Creates a request. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.groupId()Returns the value of thegroupIdrecord component.final inthashCode()Returns a hash code value for this object.leaderId()Returns the value of theleaderIdrecord component.snapshot()Returns the value of thesnapshotrecord component.term()Returns the value of thetermrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
InstallSnapshotRequest
public InstallSnapshotRequest(ConsensusGroupId groupId, ConsensusTerm term, ConsensusNodeId leaderId, ConsensusSnapshot snapshot) Creates a request.
-
-
Method Details
-
toString
-
hashCode
-
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). -
groupId
-
term
-
leaderId
-
snapshot
-