public interface ConnectionListener
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.
|
void connectionClosed(Connection connection, Throwable error)
connection
- which was closederror
- exception that caused the abnormal closure; null if
connection was closed normallyvoid connectionError(Connection connection, String message, Throwable error)
connection
- which had an errormessage
- message describing the connection errorerror
- exception describing the errorCopyright © 2015. All Rights Reserved.