コード例 #1
0
ファイル: Replication.java プロジェクト: narayana1208/TomP2P
 /**
  * Notify if an other peer is responsible and we should transfer data to this peer.
  *
  * @param locationKey The location key.
  * @param other The other peer.
  * @param delayed Indicates if the other peer should get notified immediately or delayed. The case
  *     for delayed is that multiple non responsible peers may call this and a delayed call in that
  *     case may be better.
  */
 private void notifyOtherResponsible(
     final Number160 locationKey, final PeerAddress other, final boolean delayed) {
   for (ResponsibilityListener responsibilityListener : listeners) {
     responsibilityListener.otherResponsible(locationKey, other, delayed);
   }
 }