Package network
Interface INodeListener
public interface INodeListener
Interface that allows receiving notifications when the network layer detects node changes.
-
Method Summary
Modifier and Type Method Description voidnodeConnectionReestablished(Host peerHost)Method that is called when the connection to a node was lost and re-establishedvoidnodeDown(Host peer)Method called when a node is detected as downvoidnodeUp(Host peer)Method called when a nod is detected as up
-
Method Details
-
nodeDown
Method called when a node is detected as down- Parameters:
peer- The node that is now down
-
nodeUp
Method called when a nod is detected as up- Parameters:
peer- The node that is now up
-
nodeConnectionReestablished
Method that is called when the connection to a node was lost and re-established- Parameters:
peerHost- The node whose connection was re-established
-