Record Class InstallSnapshotResponse
java.lang.Object
java.lang.Record
org.j7m.middleware.api.consensus.InstallSnapshotResponse
- Record Components:
groupId- group idterm- responder termnodeId- responder idaccepted- whether installation was acceptedreason- safe reason code
- All Implemented Interfaces:
Serializable
public record InstallSnapshotResponse(ConsensusGroupId groupId, ConsensusTerm term, ConsensusNodeId nodeId, boolean accepted, String reason)
extends Record
implements Serializable
Snapshot installation response.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInstallSnapshotResponse(ConsensusGroupId groupId, ConsensusTerm term, ConsensusNodeId nodeId, boolean accepted, String reason) Creates a response. -
Method Summary
Modifier and TypeMethodDescriptionbooleanaccepted()Returns the value of theacceptedrecord component.final 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.nodeId()Returns the value of thenodeIdrecord component.reason()Returns the value of thereasonrecord component.term()Returns the value of thetermrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
InstallSnapshotResponse
public InstallSnapshotResponse(ConsensusGroupId groupId, ConsensusTerm term, ConsensusNodeId nodeId, boolean accepted, String reason) Creates a response.
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
groupId
-
term
-
nodeId
-
accepted
-
reason
-