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 by SystemConfig when sysconf.build is 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

public static record LoadBalancerHandler.Facts(String build, String clusterId, String activeKeys, boolean development) extends Record
The principal's own facts, read at every registration.
Author:
Christopher Mindus
  • Constructor Details

    • Facts

      public Facts(String build, String clusterId, String activeKeys, boolean development)
      Creates an instance of a Facts record class.
      Parameters:
      build - the value for the build record component
      clusterId - the value for the clusterId record component
      activeKeys - the value for the activeKeys record component
      development - the value for the development record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • build

      public String build()
      Returns the value of the build record component.
      Returns:
      the value of the build record component
    • clusterId

      public String clusterId()
      Returns the value of the clusterId record component.
      Returns:
      the value of the clusterId record component
    • activeKeys

      public String activeKeys()
      Returns the value of the activeKeys record component.
      Returns:
      the value of the activeKeys record component
    • development

      public boolean development()
      Returns the value of the development record component.
      Returns:
      the value of the development record component