org.otfeed.support
Class ConnectionStateListener

java.lang.Object
  extended by org.otfeed.support.ConnectionStateListener
All Implemented Interfaces:
IConnectionStateListener

public class ConnectionStateListener
extends java.lang.Object
implements IConnectionStateListener

A no-op implementation of IConnectionStateListener. Useful if one needs to override just one or two methods, and is not interested in monitoring other connection state changes.


Constructor Summary
ConnectionStateListener()
           
 
Method Summary
 void onConnected()
          Is called when connection enters "Connected" state.
 void onConnecting(OTHost addr)
          Is called when connection enters "Connecting" state.
 void onError(OTError error)
          Is called when connection terminates.
 void onLogin()
          Is called when connection enters "Login" state.
 void onRedirect(OTHost addr)
          Is called when connection enters "Redirect" state.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionStateListener

public ConnectionStateListener()
Method Detail

onConnecting

public void onConnecting(OTHost addr)
Description copied from interface: IConnectionStateListener
Is called when connection enters "Connecting" state.

Specified by:
onConnecting in interface IConnectionStateListener
Parameters:
addr - server address.

onConnected

public void onConnected()
Description copied from interface: IConnectionStateListener
Is called when connection enters "Connected" state.

Specified by:
onConnected in interface IConnectionStateListener

onRedirect

public void onRedirect(OTHost addr)
Description copied from interface: IConnectionStateListener
Is called when connection enters "Redirect" state.

Specified by:
onRedirect in interface IConnectionStateListener
Parameters:
addr - redirect address.

onLogin

public void onLogin()
Description copied from interface: IConnectionStateListener
Is called when connection enters "Login" state.

Specified by:
onLogin in interface IConnectionStateListener

onError

public void onError(OTError error)
Description copied from interface: IConnectionStateListener
Is called when connection terminates.

Specified by:
onError in interface IConnectionStateListener


Copyright © 2007 Mike Kroutikov. All Rights Reserved.