public interface PeerMapChangeListener
| Modifier and Type | Method and Description |
|---|---|
void |
peerInserted(PeerAddress peerAddress,
boolean verified)
This method is called if a peer is added to the map.
|
void |
peerRemoved(PeerAddress peerAddress,
PeerStatistic storedPeerAddress)
This method is called if a peer is removed from the map.
|
void |
peerUpdated(PeerAddress peerAddress,
PeerStatistic storedPeerAddress)
This method is called if a peer is updated.
|
void peerInserted(PeerAddress peerAddress, boolean verified)
peerAddress - The peer that has been added.verified - True if the peer was inserted in the verified mapvoid peerRemoved(PeerAddress peerAddress, PeerStatistic storedPeerAddress)
peerAddress - The peer that has been removed and add to the cache.storedPeerAddress - Contains information statistical informationvoid peerUpdated(PeerAddress peerAddress, PeerStatistic storedPeerAddress)
peerAddress - The peer can change its IP and some statistical datastoredPeerAddress - Contains information statistical informationCopyright © 2014. All rights reserved.