|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cassandra.net.SelectionKeyHandler
public class SelectionKeyHandler
Author : Avinash Lakshman ( alakshman@facebook.com) & Prashant Malik ( pmalik@facebook.com )
Constructor Summary | |
---|---|
SelectionKeyHandler()
|
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. |
protected static void |
turnOffInterestOps(java.nio.channels.SelectionKey key,
int ops)
|
protected static void |
turnOnInterestOps(java.nio.channels.SelectionKey key,
int ops)
|
void |
write(java.nio.channels.SelectionKey key)
Method which is called when the key becomes writable. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SelectionKeyHandler()
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.protected static void turnOnInterestOps(java.nio.channels.SelectionKey key, int ops)
protected static void turnOffInterestOps(java.nio.channels.SelectionKey key, int ops)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |