apache-kafka - 为什么 apache kafka 不使用标准的 java doc?
问题描述
public class CommonClientConfigs {
private static final Logger log = LoggerFactory.getLogger(CommonClientConfigs.class);
/*
* NOTE: DO NOT CHANGE EITHER CONFIG NAMES AS THESE ARE PART OF THE PUBLIC API AND CHANGE WILL BREAK USER CODE.
*/
public static final String BOOTSTRAP_SERVERS_CONFIG = "bootstrap.servers";
public static final String BOOTSTRAP_SERVERS_DOC = "A list of host/port pairs to use for establishing the initial connection to the Kafka cluster. The client will make use of all servers irrespective of which servers are specified here for bootstrapping—this list only impacts the initial hosts used to discover the full set of servers. This list should be in the form "
+ "<code>host1:port1,host2:port2,...</code>. Since these servers are just used for the initial connection to "
+ "discover the full cluster membership (which may change dynamically), this list need not contain the full set of "
+ "servers (you may want more than one, though, in case a server is down).";
public static final String CLIENT_DNS_LOOKUP_CONFIG = "client.dns.lookup";
public static final String CLIENT_DNS_LOOKUP_DOC = "Controls how the client uses DNS lookups. If set to <code>use_all_dns_ips</code> then, when the lookup returns multiple IP addresses for a hostname,"
+ " they will all be attempted to connect to before failing the connection. Applies to both bootstrap and advertised servers."
+ " If the value is <code>resolve_canonical_bootstrap_servers_only</code> each entry will be resolved and expanded into a list of canonical names.";
}
我只是不明白他们为什么不使用标准的 javadoc 来评论。有人对此有想法吗?
解决方案
推荐阅读
- php - PHP - 谷歌视觉 API - 找不到类
- javascript - 如何更新 Map 对象属性值?
- android - 无法解析 org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.10
- php - 如何填充 php 中的 Excel 文件中的空行?
- tensorflow - 我应该如何提高迁移学习的准确性?
- php - 嵌套到嵌套元查询冻结在 WordPress
- coldfusion - 如何为数组中不存在的元素编写条件
- powershell - Powershell将多个子文件夹下的文件传输到同一文档库Sharepoint下的另一个文件夹
- php - 将 2 个单独的数组合并为一个数组
- r - 在 pivot_wider() 之后的列中避免 NA