Package io.camunda.zeebe.dynamic.config
Record Class StaticConfiguration
java.lang.Object
java.lang.Record
io.camunda.zeebe.dynamic.config.StaticConfiguration
public record StaticConfiguration(boolean enablePartitionScaling, PartitionDistributor partitionDistributor, Set<MemberId> clusterMembers, MemberId localMemberId, List<PartitionId> partitionIds, int replicationFactor, DynamicPartitionConfig partitionConfig)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionStaticConfiguration(boolean enablePartitionScaling, PartitionDistributor partitionDistributor, Set<MemberId> clusterMembers, MemberId localMemberId, List<PartitionId> partitionIds, int replicationFactor, DynamicPartitionConfig partitionConfig) Creates an instance of aStaticConfigurationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theclusterMembersrecord component.booleanReturns the value of theenablePartitionScalingrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thelocalMemberIdrecord component.Returns the value of thepartitionConfigrecord component.intReturns the value of thepartitionDistributorrecord component.Returns the value of thepartitionIdsrecord component.intReturns the value of thereplicationFactorrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
StaticConfiguration
public StaticConfiguration(boolean enablePartitionScaling, PartitionDistributor partitionDistributor, Set<MemberId> clusterMembers, MemberId localMemberId, List<PartitionId> partitionIds, int replicationFactor, DynamicPartitionConfig partitionConfig) Creates an instance of aStaticConfigurationrecord class.- Parameters:
enablePartitionScaling- the value for theenablePartitionScalingrecord componentpartitionDistributor- the value for thepartitionDistributorrecord componentclusterMembers- the value for theclusterMembersrecord componentlocalMemberId- the value for thelocalMemberIdrecord componentpartitionIds- the value for thepartitionIdsrecord componentreplicationFactor- the value for thereplicationFactorrecord componentpartitionConfig- the value for thepartitionConfigrecord component
-
-
Method Details
-
partitionCount
public int partitionCount() -
generateTopology
-
generatePartitionDistribution
-
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 '=='. -
enablePartitionScaling
public boolean enablePartitionScaling()Returns the value of theenablePartitionScalingrecord component.- Returns:
- the value of the
enablePartitionScalingrecord component
-
partitionDistributor
Returns the value of thepartitionDistributorrecord component.- Returns:
- the value of the
partitionDistributorrecord component
-
clusterMembers
Returns the value of theclusterMembersrecord component.- Returns:
- the value of the
clusterMembersrecord component
-
localMemberId
Returns the value of thelocalMemberIdrecord component.- Returns:
- the value of the
localMemberIdrecord component
-
partitionIds
Returns the value of thepartitionIdsrecord component.- Returns:
- the value of the
partitionIdsrecord component
-
replicationFactor
public int replicationFactor()Returns the value of thereplicationFactorrecord component.- Returns:
- the value of the
replicationFactorrecord component
-
partitionConfig
Returns the value of thepartitionConfigrecord component.- Returns:
- the value of the
partitionConfigrecord component
-