Record Class ConsensusConfig
java.lang.Object
java.lang.Record
org.j7m.middleware.consensus.ConsensusConfig
- Record Components:
configuration- public fixed membership configurationstorageRoot- durable state root
-
Constructor Summary
ConstructorsConstructorDescriptionConsensusConfig(org.j7m.middleware.api.consensus.ConsensusConfiguration configuration, Path storageRoot) Creates a configuration. -
Method Summary
Modifier and TypeMethodDescriptionorg.j7m.middleware.api.consensus.ConsensusConfigurationReturns the value of theconfigurationrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns configured node ids keyed by value.Returns the value of thestorageRootrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ConsensusConfig
public ConsensusConfig(org.j7m.middleware.api.consensus.ConsensusConfiguration configuration, Path storageRoot) Creates a configuration.
-
-
Method Details
-
nodeIdsByValue
-
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). -
configuration
public org.j7m.middleware.api.consensus.ConsensusConfiguration configuration()Returns the value of theconfigurationrecord component.- Returns:
- the value of the
configurationrecord component
-
storageRoot
Returns the value of thestorageRootrecord component.- Returns:
- the value of the
storageRootrecord component
-