Interface SocketNodeEventListener

  • All Superinterfaces:
    java.util.EventListener

    public interface SocketNodeEventListener
    extends java.util.EventListener
    Interface used to listen for SocketNode related events. Clients register an instance of the interface and the instance is called back when the various events occur.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void socketClosedEvent​(java.lang.Exception e)
      Called when the socket the node was given has been closed.
      void socketOpened​(java.lang.String remoteInfo)
      Called when the SocketNode is created and begins awaiting data.
    • Method Detail

      • socketOpened

        void socketOpened​(java.lang.String remoteInfo)
        Called when the SocketNode is created and begins awaiting data.
        Parameters:
        remoteInfo - remote info
      • socketClosedEvent

        void socketClosedEvent​(java.lang.Exception e)
        Called when the socket the node was given has been closed.
        Parameters:
        e - exception