com.h3c.util.net.msg

## Interface ConnectionListener

-     public interface ConnectionListener

  Abstraction of a delegate capable of responding to various connection lifecycle events.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `connectionClosed(Connection connection, Throwable error)` Notification of connection being closed.
    `void` | `connectionError(Connection connection, String message, Throwable error)` Notification of a connection error.

- - ### Method Detail

    - #### connectionClosed

          void connectionClosed(Connection connection,
                              Throwable error)

      Notification of connection being closed.
      Parameters:
        `connection` - which was closed
        `error` - exception that caused the abnormal closure; null if connection was closed normally

    - #### connectionError

          void connectionError(Connection connection,
                             String message,
                             Throwable error)

      Notification of a connection error.
      Parameters:
        `connection` - which had an error
        `message` - message describing the connection error
        `error` - exception describing the error

Copyright © 2014. All Rights Reserved.