|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jivesoftware.smack.ReconnectionManager
public class ReconnectionManager
Handles the automatic reconnection process. Every time a connection is dropped without the application explictly closing it, the manager automatically tries to reconnect to the server.
The reconnection mechanism will try to reconnect periodically:
| Method Summary | |
|---|---|
void |
connectionClosed()
Notification that the connection was closed normally or that the reconnection process has been aborted. |
void |
connectionClosedOnError(java.lang.Exception e)
Notification that the connection was closed due to an exception. |
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 |
reconnectionSuccessful()
The connection has successfull gotten connected. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public void connectionClosed()
ConnectionListener
connectionClosed in interface ConnectionListenerpublic void connectionClosedOnError(java.lang.Exception e)
ConnectionListener
connectionClosedOnError in interface ConnectionListenere - the exception.public void reconnectingIn(int seconds)
ConnectionListener
reconnectingIn in interface ConnectionListenerseconds - remaining seconds before attempting a reconnection.public void reconnectionFailed(java.lang.Exception e)
ConnectionListener
reconnectionFailed in interface ConnectionListenere - the exception that caused the reconnection to fail.public void reconnectionSuccessful()
reconnectionSuccessful in interface ConnectionListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||