public interface ReconnectionListener
ReconnectionManager
. Use
ReconnectionManager.addReconnectionListener(ReconnectionListener)
to add new listeners to the reconnection
manager.Modifier and Type | Method and Description |
---|---|
void |
reconnectingIn(int seconds)
The connection will retry to reconnect in the specified number of seconds.
|
void |
reconnectionFailed(java.lang.Exception e)
An attempt to connect to the server has failed.
|
void reconnectingIn(int seconds)
Note: This method is only called if ReconnectionManager.isAutomaticReconnectEnabled()
returns true, i.e.
only when the reconnection manager is enabled for the connection.
seconds
- remaining seconds before attempting a reconnection.void reconnectionFailed(java.lang.Exception e)
Note: This method is only called if ReconnectionManager.isAutomaticReconnectEnabled()
returns true, i.e.
only when the reconnection manager is enabled for the connection.
e
- the exception that caused the reconnection to fail.