P
- type of the peer's statuspublic interface PeerListener<P>
Modifier and Type | Method and Description |
---|---|
void |
onBecomingUnknown(Node node,
P lastKnownStatus)
Notifies when a peer becomes unknown.
|
void |
onUpdate(Node node,
P currentStatus)
Notifies received remote peers' status updates.
|
void onUpdate(Node node, P currentStatus)
The status of the local peer is not notified.
node
- the peer nodecurrentStatus
- peer's current statusvoid onBecomingUnknown(Node node, P lastKnownStatus)
PeerMonitor.getUnknownPeers()
.
The local peer never becomes unknown. It might be unknown by the time
the PeerMonitor
is instantiated, but once the initial state is
received, it should not be lost.
node
- the peer nodelastKnownStatus
- peer's last known statusCopyright © 2016. All Rights Reserved.