org.androidpn.client
Class PersistentConnectionListener

java.lang.Object
  extended by org.androidpn.client.PersistentConnectionListener
All Implemented Interfaces:
org.jivesoftware.smack.ConnectionListener

public class PersistentConnectionListener
extends java.lang.Object
implements org.jivesoftware.smack.ConnectionListener

A listener class for monitoring connection closing and reconnection events.

Author:
Sehwan Noh (devnoh@gmail.com)

Constructor Summary
PersistentConnectionListener(XmppManager xmppManager)
           
 
Method Summary
 void connectionClosed()
           
 void connectionClosedOnError(java.lang.Exception e)
           
 void reconnectingIn(int seconds)
           
 void reconnectionFailed(java.lang.Exception e)
           
 void reconnectionSuccessful()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PersistentConnectionListener

public PersistentConnectionListener(XmppManager xmppManager)
Method Detail

connectionClosed

public void connectionClosed()
Specified by:
connectionClosed in interface org.jivesoftware.smack.ConnectionListener

connectionClosedOnError

public void connectionClosedOnError(java.lang.Exception e)
Specified by:
connectionClosedOnError in interface org.jivesoftware.smack.ConnectionListener

reconnectingIn

public void reconnectingIn(int seconds)
Specified by:
reconnectingIn in interface org.jivesoftware.smack.ConnectionListener

reconnectionFailed

public void reconnectionFailed(java.lang.Exception e)
Specified by:
reconnectionFailed in interface org.jivesoftware.smack.ConnectionListener

reconnectionSuccessful

public void reconnectionSuccessful()
Specified by:
reconnectionSuccessful in interface org.jivesoftware.smack.ConnectionListener