org.apache.cassandra.net
Class UdpConnection
java.lang.Object
org.apache.cassandra.net.SelectionKeyHandler
org.apache.cassandra.net.UdpConnection
public class UdpConnection
- extends SelectionKeyHandler
Method Summary |
java.nio.channels.DatagramChannel |
getDatagramChannel()
|
void |
init()
|
void |
init(java.net.InetAddress localEp)
|
void |
read(java.nio.channels.SelectionKey key)
Method which is called when the key becomes readable. |
boolean |
write(Message message,
java.net.InetAddress to)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UdpConnection
public UdpConnection()
init
public void init()
throws java.io.IOException
- Throws:
java.io.IOException
init
public void init(java.net.InetAddress localEp)
throws java.io.IOException
- Throws:
java.io.IOException
write
public boolean write(Message message,
java.net.InetAddress to)
throws java.io.IOException
- Throws:
java.io.IOException
getDatagramChannel
public java.nio.channels.DatagramChannel getDatagramChannel()
read
public void read(java.nio.channels.SelectionKey key)
- Description copied from class:
SelectionKeyHandler
- Method which is called when the key becomes readable.
- Overrides:
read
in class SelectionKeyHandler
- Parameters:
key
- The key which is readable.
Copyright © 2010 The Apache Software Foundation