chia7712 commented on code in PR #22346:
URL: https://github.com/apache/kafka/pull/22346#discussion_r4507067831
##########
server/src/main/java/org/apache/kafka/server/InterBrokerNetworkClientFactory.java:
##########
@@ -31,16 +31,19 @@
import org.apache.kafka.common.security.JaasContext;
import org.apache.kafka.common.utils.Time;
import org.apache.kafka.common.utils.internals.LogContext;
+import org.apache.kafka.server.config.AbstractKafkaConfig;
import java.util.Map;
-public class NetworkUtils {
+public class InterBrokerNetworkClientFactory {
- public static NetworkClient buildNetworkClient(String prefix,
- KafkaConfig config,
- Metrics metrics,
- Time time,
- LogContext logContext) {
+ private InterBrokerNetworkClientFactory() {}
+
+ public static NetworkClient create(String prefix,
Review Comment:
This is used by only one class, but I'm fine with it since the refactor can
happen once the migration is completed
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]