CalvinConfluent commented on code in PR #15470: URL: https://github.com/apache/kafka/pull/15470#discussion_r1513640577
########## clients/src/main/java/org/apache/kafka/clients/admin/DescribeTopicsOptions.java: ########## @@ -47,8 +49,32 @@ public DescribeTopicsOptions includeAuthorizedOperations(boolean includeAuthoriz return this; } + /** + * Whether to use the DescribeTopicPartitions API. It should be set to false if DescribeTopicPartitions API is + * not supported. + * + */ + public DescribeTopicsOptions useDescribeTopicPartitionsApi(boolean useDescribeTopicPartitionsApi) { + this.useDescribeTopicPartitionsApi = useDescribeTopicPartitionsApi; + return this; + } + + // Note that, partitionSizeLimitPerResponse will not be effective if it is larger than the config + // max.request.partition.size.limit on the server side. + public DescribeTopicsOptions partitionSizeLimitPerResponse(int partitionSizeLimitPerResponse) { + this.partitionSizeLimitPerResponse = partitionSizeLimitPerResponse; + return this; + } + public boolean includeAuthorizedOperations() { return includeAuthorizedOperations; } + public boolean useDescribeTopicPartitionsApi() { Review Comment: removed. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org