public interface ConnectionListener
Modifier and Type | Method and Description |
---|---|
void |
closed(Throwable error)
Called when the connection is broken
|
void |
connectFailed(Throwable error)
The attempt to establish a connection has failed.
|
void |
opened()
Called when the connection is established
|
void opened()
void closed(Throwable error)
error
- the error or null
if no error is knownvoid connectFailed(Throwable error)
error
- the error or null
if no error is known