| 
 | Smack | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ConnectionListener
Interface that allows for implementing classes to listen for connection closing and reconnection events. Listeners are registered with Connection objects.
Connection.addConnectionListener(org.jivesoftware.smack.ConnectionListener), 
Connection.removeConnectionListener(org.jivesoftware.smack.ConnectionListener)| Method Summary | |
|---|---|
|  void | connectionClosed()Notification that the connection was closed normally or that the reconnection process has been aborted. | 
|  void | connectionClosedOnError(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(Exception e)An attempt to connect to the server has failed. | 
|  void | reconnectionSuccessful()The connection has reconnected successfully to the server. | 
| Method Detail | 
|---|
void connectionClosed()
void connectionClosedOnError(Exception e)
e - the exception.void reconnectingIn(int seconds)
seconds - remaining seconds before attempting a reconnection.void reconnectionSuccessful()
void reconnectionFailed(Exception e)
e - the exception that caused the reconnection to fail.| 
 | Smack | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||