|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface is designed to be a callback mechanism from the SelectorManager. Once the manager has determines that something has happened, it informs the appropriate SelectionKeyHandler via this interface. The SelectionKeyHandler which is interested in being notified of events relating to the SelectionKey should attach itself to the SelectionKey via the attach() method. The SelectorManager will then call that SelectionKeyHandler's methods.
Method Summary | |
void |
accept(java.nio.channels.SelectionKey key)
Method which is called when the key becomes acceptable. |
void |
connect(java.nio.channels.SelectionKey key)
Method which is called when the key becomes connectable. |
void |
read(java.nio.channels.SelectionKey key)
Method which is called when the key becomes readable. |
void |
write(java.nio.channels.SelectionKey key)
Method which is called when the key becomes writable. |
Method Detail |
public void accept(java.nio.channels.SelectionKey key)
key
- The key which is acceptable.public void connect(java.nio.channels.SelectionKey key)
key
- The key which is connectable.public void read(java.nio.channels.SelectionKey key)
key
- The key which is readable.public void write(java.nio.channels.SelectionKey key)
key
- The key which is writable.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |