Annotation Interface ClusterConfigProperty


@Documented @Target(ANNOTATION_TYPE) @Retention(RUNTIME) public @interface ClusterConfigProperty
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
     
     
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    int
    The config applies to the controller/broker with specified id.
  • Element Details

    • id

      int id
      The config applies to the controller/broker with specified id. Default is -1, indicating the property applied to all controller/broker servers. Note that the "controller" here refers to the KRaft quorum controller. The id can vary depending on the different Type.
      • Under Type.KRAFT, the broker id starts from 0, the controller id starts from 3000 and increases by 1 with each addition broker/controller.
      • Under Type.CO_KRAFT, the broker id and controller id both start from 0 and increases by 1 with each additional broker/controller.
      If the id doesn't correspond to any broker/controller server, throw IllegalArgumentException
      Returns:
      the controller/broker id
      Default:
      -1
    • key

      String key
    • value

      String value