Record Class LoadBalancerHandler.Facts
java.lang.Object
java.lang.Record
com.iizix.server.loadbalancer.LoadBalancerHandler.Facts
- Record Components:
build- The principal's build.clusterId- The principal's shared-DB identity, or null.activeKeys- The fingerprint of the principal's active server key, or null.development- true when the principal runs in development mode: a development JVM's build number is its own start time (99YYYYMMDDHHMMSS, set bySystemConfigwhensysconf.buildis not a number), so two development servers never share a build and rule 4 would refuse every member; the development principal admits with a WARNING instead.
- Enclosing class:
LoadBalancerHandler
Constructor Summary
ConstructorsMethod Summary
Modifier and TypeMethodDescriptionReturns the value of theactiveKeysrecord component.build()Returns the value of thebuildrecord component.Returns the value of theclusterIdrecord component.booleanReturns the value of thedevelopmentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
Constructor Details
Facts
Creates an instance of aFactsrecord class.- Parameters:
build- the value for thebuildrecord componentclusterId- the value for theclusterIdrecord componentactiveKeys- the value for theactiveKeysrecord componentdevelopment- the value for thedevelopmentrecord component
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.build
clusterId
activeKeys
Returns the value of theactiveKeysrecord component.- Returns:
- the value of the
activeKeysrecord component
development
public boolean development()Returns the value of thedevelopmentrecord component.- Returns:
- the value of the
developmentrecord component