|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.exolab.core.messenger.ConnectionEventNotifier
A helper class for managing ConnectionEventListener instances
and notifying them of any events
Connection| Constructor Summary | |
ConnectionEventNotifier()
|
|
| Method Summary | |
void |
addConnectionEventListener(ConnectionEventListener listener)
Add a listener for connection events |
void |
closed(Connection connection)
Invoked when the connection is closed |
void |
error(Connection connection,
java.lang.Exception exception)
Invoked when a fatal connection error occurs, just before an Exception is thrown to the application |
void |
removeConnectionEventListener(ConnectionEventListener listener)
Remove a listener of connection events |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ConnectionEventNotifier()
| Method Detail |
public void addConnectionEventListener(ConnectionEventListener listener)
listener - the listener to addpublic void removeConnectionEventListener(ConnectionEventListener listener)
listener - the listener to removepublic void closed(Connection connection)
connection - the closed connection
public void error(Connection connection,
java.lang.Exception exception)
connection - the connection the error occurred onexception - the error
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||