Record Class QNodeRoles.Settings
java.lang.Object
java.lang.Record
com.kingsrook.qqq.backend.core.cluster.QNodeRoles.Settings
- Record Components:
roles- the node's roleshttp- serve application routesscheduler- start schedulersesbTriggers- run ESB trigger consumersworkerThreads- durable job worker threads; null means the instance's settingnodeId- 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 Summary
ConstructorsConstructorDescriptionSettings(Set<QNodeRoles.Role> roles, boolean http, boolean scheduler, boolean esbTriggers, Integer workerThreads, String nodeId) Creates an instance of aSettingsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of theesbTriggersrecord component.final inthashCode()Returns a hash code value for this object.booleanhttp()Returns the value of thehttprecord component.nodeId()Returns the value of thenodeIdrecord component.roles()Returns the value of therolesrecord component.booleanReturns the value of theschedulerrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theworkerThreadsrecord component.
-
Constructor Details
-
Settings
public Settings(Set<QNodeRoles.Role> roles, boolean http, boolean scheduler, boolean esbTriggers, Integer workerThreads, String nodeId) Creates an instance of aSettingsrecord class.- Parameters:
roles- the value for therolesrecord componenthttp- the value for thehttprecord componentscheduler- the value for theschedulerrecord componentesbTriggers- the value for theesbTriggersrecord componentworkerThreads- the value for theworkerThreadsrecord componentnodeId- the value for thenodeIdrecord 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. -
roles
-
http
-
scheduler
-
esbTriggers
public boolean esbTriggers()Returns the value of theesbTriggersrecord component.- Returns:
- the value of the
esbTriggersrecord component
-
workerThreads
Returns the value of theworkerThreadsrecord component.- Returns:
- the value of the
workerThreadsrecord component
-
nodeId
-