|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cassandra.net.SelectionKeyHandler
org.apache.cassandra.net.TcpConnection
public class TcpConnection
Author : Avinash Lakshman ( alakshman@facebook.com) & Prashant Malik ( pmalik@facebook.com )
Method Summary | |
---|---|
void |
close()
|
int |
compareTo(java.lang.Object o)
|
void |
connect(java.nio.channels.SelectionKey key)
Method which is called when the key becomes connectable. |
boolean |
equals(java.lang.Object o)
|
EndPoint |
getEndPoint()
|
java.nio.channels.SocketChannel |
getSocketChannel()
|
int |
hashCode()
|
boolean |
isConnected()
|
boolean |
isIncoming()
|
int |
pending()
|
void |
read(java.nio.channels.SelectionKey key)
Method which is called when the key becomes readable. |
void |
setLocalEp(EndPoint localEp)
|
void |
stream(java.io.File file,
long startPosition,
long endPosition)
|
java.lang.String |
toString()
|
void |
write(Message message)
|
void |
write(java.nio.channels.SelectionKey key)
Method which is called when the key becomes writable. |
Methods inherited from class org.apache.cassandra.net.SelectionKeyHandler |
---|
accept, turnOffInterestOps, turnOnInterestOps |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public void setLocalEp(EndPoint localEp)
public EndPoint getEndPoint()
public boolean isIncoming()
public java.nio.channels.SocketChannel getSocketChannel()
public void write(Message message) throws java.io.IOException
java.io.IOException
public void stream(java.io.File file, long startPosition, long endPosition) throws java.io.IOException, java.lang.InterruptedException
java.io.IOException
java.lang.InterruptedException
public void close()
public boolean isConnected()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public void connect(java.nio.channels.SelectionKey key)
SelectionKeyHandler
connect
in class SelectionKeyHandler
key
- The key which is connectable.public void write(java.nio.channels.SelectionKey key)
SelectionKeyHandler
write
in class SelectionKeyHandler
key
- The key which is writable.public void read(java.nio.channels.SelectionKey key)
SelectionKeyHandler
read
in class SelectionKeyHandler
key
- The key which is readable.public int pending()
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |