|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ConnectionStateListener
An internal interface used by the framework - implemented by an object which can be notified when connections are opened or closed.
Note: in practice this is implemented by theConnectionManager as a means
to be notified of connection events, and this interface is invoked by ConnectionListeners when incoming
connections are received and by Connection objects when connections are
closed.
This interface really only exists to decouple objects which send notifications from the implementations which
subscribe to them, to simplify independent unit testing etc.
| Method Summary | |
|---|---|
boolean |
isConnectionRegistered(ConnectionId connectionId)
|
void |
notifyConnectionClosed(ConnectionInternal connection)
Called when the supplied connection has been closed. |
void |
notifyConnectionOpened(ConnectionInternal connection)
Called when the supplied connection has been opened. |
| Method Detail |
|---|
void notifyConnectionOpened(ConnectionInternal connection)
connection - The connection which has been openedvoid notifyConnectionClosed(ConnectionInternal connection)
connection - The connection which has been closedboolean isConnectionRegistered(ConnectionId connectionId)
connectionId - The connection id to check
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||