codings-dan commented on a change in pull request #598:
URL: https://github.com/apache/ratis/pull/598#discussion_r809707037



##########
File path: 
ratis-server-api/src/main/java/org/apache/ratis/server/RaftConfiguration.java
##########
@@ -36,9 +36,18 @@
    */
   RaftPeer getPeer(RaftPeerId id);
 
+  /**
+   * @return the listener corresponding to the given id;
+   *         or return null if the listener is not in this configuration.
+   */
+  RaftPeer getListener(RaftPeerId id);
+
   /** @return all the peers in the current configuration and the previous 
configuration. */
   Collection<RaftPeer> getAllPeers();
 
+  /** @return all the listeners in the current configuration and the previous 
configuration. */
+  Collection<RaftPeer> getListeners();

Review comment:
       done




-- 
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]


Reply via email to