↓ 1 callersMethodgetLeaderHostNameFetch the (user supplied) hostname of the current leader. Note that by the time this method returns, state could have changed so do not depend on this
olcp/learn-platform-backstage/zookeeper-3.4.6/src/recipes/election/src/java/org/apache/zookeeper/recipes/leader/LeaderElectionSupport.java:297