public interface ConnectionStateListener
Modifier and Type | Method and Description |
---|---|
void |
stateChange(Connection connection,
ConnectionState state,
Throwable error)
Notify a state change
|
void stateChange(Connection connection, ConnectionState state, Throwable error)
connection
- the connection that changedstate
- the new state of the connectionerror
- some error information that lead to the new state (can be null
if it was not an error)