Example #1
0
 private void notifyMeResponsible(final Number160 locationKey, PeerAddress newPeer) {
   for (ResponsibilityListener responsibilityListener : listeners) {
     responsibilityListener.meResponsible(locationKey, newPeer);
   }
 }
Example #2
0
 /**
  * Notify if I'm responsible and something needs to change, i.e., to make sure that there are
  * enough replicas.
  *
  * @param locationKey The location key.
  */
 private void notifyMeResponsible(final Number160 locationKey) {
   for (ResponsibilityListener responsibilityListener : listeners) {
     responsibilityListener.meResponsible(locationKey);
   }
 }