|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ConnectionCloseHandler
Simple listener to be used when an application needs to be notified when a
a SelectorHandler, ConnectionHandler or SelectionKeyHandler
close a connection (locallyClosed(java.nio.channels.SelectionKey)), or when a
remote client close the connection (remotlyClosed(java.nio.channels.SelectionKey)).
Note that when the connection is closed remotly, the (remotlyClosed(java.nio.channels.SelectionKey))
will be invoked immediately followed by a (locallyClosed(java.nio.channels.SelectionKey)), as
Grizzly will discard the server side dirty SelectionKey.
| Method Summary | |
|---|---|
void |
locallyClosed(SelectionKey key)
Invoked when the a SelectionKey is cancelled locally, e.g. |
void |
remotlyClosed(SelectionKey key)
Invoked when a remote connection is being closed. |
| Method Detail |
|---|
void locallyClosed(SelectionKey key)
SelectionKey is cancelled locally, e.g. by
one SelectorHandler, ConnectionHandler or SelectionKeyHandler
key - a SelectionKeyvoid remotlyClosed(SelectionKey key)
key - a SelectionKey
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||