Interface ConnectionListener


public interface ConnectionListener
Called when the state of a channel connection has changed.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    connectionStateChanged(NetServerChannel channel, boolean connected)
    Called when the state of a channel connection has changed.
  • Method Details

    • connectionStateChanged

      void connectionStateChanged(NetServerChannel channel, boolean connected) throws Exception
      Called when the state of a channel connection has changed.
      Parameters:
      channel - the channel whose connection state has changed.
      connected - true if channel is connected, false otherwise.
      Throws:
      NullPointerException - if channel is null.
      Exception - if an unexpected error occurs.