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 Details

    • StaticConfiguration

      public StaticConfiguration(boolean enablePartitionScaling, PartitionDistributor partitionDistributor, Set<MemberId> clusterMembers, MemberId localMemberId, List<PartitionId> partitionIds, int replicationFactor, DynamicPartitionConfig partitionConfig)
      Creates an instance of a StaticConfiguration record class.
      Parameters:
      enablePartitionScaling - the value for the enablePartitionScaling record component
      partitionDistributor - the value for the partitionDistributor record component
      clusterMembers - the value for the clusterMembers record component
      localMemberId - the value for the localMemberId record component
      partitionIds - the value for the partitionIds record component
      replicationFactor - the value for the replicationFactor record component
      partitionConfig - the value for the partitionConfig record component
  • Method Details

    • partitionCount

      public int partitionCount()
    • generateTopology

      public ClusterConfiguration generateTopology()
    • generatePartitionDistribution

      public Set<PartitionMetadata> generatePartitionDistribution()
    • 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 '=='.
      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.
    • enablePartitionScaling

      public boolean enablePartitionScaling()
      Returns the value of the enablePartitionScaling record component.
      Returns:
      the value of the enablePartitionScaling record component
    • partitionDistributor

      public PartitionDistributor partitionDistributor()
      Returns the value of the partitionDistributor record component.
      Returns:
      the value of the partitionDistributor record component
    • clusterMembers

      public Set<MemberId> clusterMembers()
      Returns the value of the clusterMembers record component.
      Returns:
      the value of the clusterMembers record component
    • localMemberId

      public MemberId localMemberId()
      Returns the value of the localMemberId record component.
      Returns:
      the value of the localMemberId record component
    • partitionIds

      public List<PartitionId> partitionIds()
      Returns the value of the partitionIds record component.
      Returns:
      the value of the partitionIds record component
    • replicationFactor

      public int replicationFactor()
      Returns the value of the replicationFactor record component.
      Returns:
      the value of the replicationFactor record component
    • partitionConfig

      public DynamicPartitionConfig partitionConfig()
      Returns the value of the partitionConfig record component.
      Returns:
      the value of the partitionConfig record component