org.apache.cassandra.net
Class SelectionKeyHandler

java.lang.Object
  extended by org.apache.cassandra.net.SelectionKeyHandler
Direct Known Subclasses:
HttpConnection, HttpConnectionHandler, TcpConnection, TcpConnectionHandler, UdpConnection

public class SelectionKeyHandler
extends java.lang.Object

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

SelectionKeyHandler

public SelectionKeyHandler()
Method Detail

accept

public void accept(java.nio.channels.SelectionKey key)
Method which is called when the key becomes acceptable.

Parameters:
key - The key which is acceptable.

connect

public void connect(java.nio.channels.SelectionKey key)
Method which is called when the key becomes connectable.

Parameters:
key - The key which is connectable.

read

public void read(java.nio.channels.SelectionKey key)
Method which is called when the key becomes readable.

Parameters:
key - The key which is readable.

write

public void write(java.nio.channels.SelectionKey key)
Method which is called when the key becomes writable.

Parameters:
key - The key which is writable.

turnOnInterestOps

protected static void turnOnInterestOps(java.nio.channels.SelectionKey key,
                                        int ops)

turnOffInterestOps

protected static void turnOffInterestOps(java.nio.channels.SelectionKey key,
                                         int ops)


Copyright © 2009 The Apache Software Foundation