Record Class QNodeRoles.Settings

java.lang.Object
java.lang.Record
com.kingsrook.qqq.backend.core.cluster.QNodeRoles.Settings
Record Components:
roles - the node's roles
http - serve application routes
scheduler - start schedulers
esbTriggers - run ESB trigger consumers
workerThreads - durable job worker threads; null means the instance's setting
nodeId - this node's id
Enclosing class:
QNodeRoles

public static record QNodeRoles.Settings(Set<QNodeRoles.Role> roles, boolean http, boolean scheduler, boolean esbTriggers, Integer workerThreads, String nodeId) extends Record
The resolved settings of this node.
  • Constructor Details

    • Settings

      public Settings(Set<QNodeRoles.Role> roles, boolean http, boolean scheduler, boolean esbTriggers, Integer workerThreads, String nodeId)
      Creates an instance of a Settings record class.
      Parameters:
      roles - the value for the roles record component
      http - the value for the http record component
      scheduler - the value for the scheduler record component
      esbTriggers - the value for the esbTriggers record component
      workerThreads - the value for the workerThreads record component
      nodeId - the value for the nodeId 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.
    • roles

      public Set<QNodeRoles.Role> roles()
      Returns the value of the roles record component.
      Returns:
      the value of the roles record component
    • http

      public boolean http()
      Returns the value of the http record component.
      Returns:
      the value of the http record component
    • scheduler

      public boolean scheduler()
      Returns the value of the scheduler record component.
      Returns:
      the value of the scheduler record component
    • esbTriggers

      public boolean esbTriggers()
      Returns the value of the esbTriggers record component.
      Returns:
      the value of the esbTriggers record component
    • workerThreads

      public Integer workerThreads()
      Returns the value of the workerThreads record component.
      Returns:
      the value of the workerThreads record component
    • nodeId

      public String nodeId()
      Returns the value of the nodeId record component.
      Returns:
      the value of the nodeId record component