|
||||||||||
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.UdpConnection
public class UdpConnection
Constructor Summary | |
---|---|
UdpConnection()
|
Method Summary | |
---|---|
java.nio.channels.DatagramChannel |
getDatagramChannel()
|
void |
init()
|
void |
init(int port)
|
void |
read(java.nio.channels.SelectionKey key)
Method which is called when the key becomes readable. |
boolean |
write(Message message,
EndPoint to)
|
Methods inherited from class org.apache.cassandra.net.SelectionKeyHandler |
---|
accept, connect, turnOffInterestOps, turnOnInterestOps, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UdpConnection()
Method Detail |
---|
public void init() throws java.io.IOException
java.io.IOException
public void init(int port) throws java.io.IOException
java.io.IOException
public boolean write(Message message, EndPoint to) throws java.io.IOException
java.io.IOException
public java.nio.channels.DatagramChannel getDatagramChannel()
public void read(java.nio.channels.SelectionKey key)
SelectionKeyHandler
read
in class SelectionKeyHandler
key
- The key which is readable.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |