title: How could we make use of ClusterListener in Mongo?
body: <p>I was trying to look for an example or usage of the <a href="http://api.mongodb.com/java/current/com/mongodb/event/ClusterListener.html" rel="noreferrer">ClusterListener</a> to optimize and improve the debugging information of a service integrated with MongoDB Java client.</p>
  
  <p>How could this be used by us effectively to improve on our Mongo cluster set using <a href="https://docs.mongodb.com/manual/replication/" rel="noreferrer">Replication</a>?</p>