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
    void nodeConnectionReestablished​(Host peerHost)
    Method that is called when the connection to a node was lost and re-established
    void nodeDown​(Host peer)
    Method called when a node is detected as down
    void nodeUp​(Host peer)
    Method called when a nod is detected as up
  • Method Details

    • nodeDown

      void nodeDown​(Host peer)
      Method called when a node is detected as down
      Parameters:
      peer - The node that is now down
    • nodeUp

      void nodeUp​(Host peer)
      Method called when a nod is detected as up
      Parameters:
      peer - The node that is now up
    • nodeConnectionReestablished

      void nodeConnectionReestablished​(Host peerHost)
      Method that is called when the connection to a node was lost and re-established
      Parameters:
      peerHost - The node whose connection was re-established