|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.otfeed.support.ConnectionStateListener
public class ConnectionStateListener
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 |
---|
public ConnectionStateListener()
Method Detail |
---|
public void onConnecting(OTHost addr)
IConnectionStateListener
onConnecting
in interface IConnectionStateListener
addr
- server address.public void onConnected()
IConnectionStateListener
onConnected
in interface IConnectionStateListener
public void onRedirect(OTHost addr)
IConnectionStateListener
onRedirect
in interface IConnectionStateListener
addr
- redirect address.public void onLogin()
IConnectionStateListener
onLogin
in interface IConnectionStateListener
public void onError(OTError error)
IConnectionStateListener
onError
in interface IConnectionStateListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |