li4wang commented on code in PR #2320:
URL: https://github.com/apache/zookeeper/pull/2320#discussion_r2644539576
##########
zookeeper-server/src/main/java/org/apache/zookeeper/client/HostProvider.java:
##########
@@ -72,4 +72,21 @@ public interface HostProvider {
*/
boolean updateServerList(Collection<InetSocketAddress> serverAddresses,
InetSocketAddress currentHost);
+ /**
+ * Returns the connection type that this HostProvider supports.
+ * Default implementation returns HOST_PORT for backward compatibility.
+ *
+ * @return the ConnectionType supported by this provider
+ */
+ default ConnectionType getSupportedConnectionType() {
Review Comment:
Removed, not needed any more.
--
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]