Record Class KafkaClusterConfig.ConfigHolder
java.lang.Object
java.lang.Record
io.kroxylicious.testing.kafka.common.KafkaClusterConfig.ConfigHolder
- Record Components:
properties- the properties (mutable)nodeId- the node idkraftClusterId- the kafka kraft cluster idroles- the role(s) of the node, comma separated
- Enclosing class:
KafkaClusterConfig
public static record KafkaClusterConfig.ConfigHolder(Properties properties, int nodeId, String kraftClusterId, String roles)
extends Record
The type Config holder.
-
Constructor Summary
ConstructorsConstructorDescriptionConfigHolder(Properties properties, int nodeId, String kraftClusterId, String roles) Creates an instance of aConfigHolderrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisBroker()booleanReturns the value of thekraftClusterIdrecord component.intnodeId()Returns the value of thenodeIdrecord component.Returns the value of thepropertiesrecord component.roles()Returns the value of therolesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ConfigHolder
Creates an instance of aConfigHolderrecord class.- Parameters:
properties- the value for thepropertiesrecord componentnodeId- the value for thenodeIdrecord componentkraftClusterId- the value for thekraftClusterIdrecord componentroles- the value for therolesrecord component
-
-
Method Details
-
isBroker
public boolean isBroker() -
isController
public boolean isController() -
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. -
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. -
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 '=='. -
properties
Returns the value of thepropertiesrecord component.- Returns:
- the value of the
propertiesrecord component
-
nodeId
public int nodeId()Returns the value of thenodeIdrecord component.- Returns:
- the value of the
nodeIdrecord component
-
kraftClusterId
Returns the value of thekraftClusterIdrecord component.- Returns:
- the value of the
kraftClusterIdrecord component
-
roles
Returns the value of therolesrecord component.- Returns:
- the value of the
rolesrecord component
-