org.apache.cassandra.net
Class UdpConnection
java.lang.Object
org.apache.cassandra.net.SelectionKeyHandler
org.apache.cassandra.net.UdpConnection
public class UdpConnection
- extends SelectionKeyHandler
Author : Avinash Lakshman ( alakshman@facebook.com) & Prashant Malik ( pmalik@facebook.com )
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(int port)
throws java.io.IOException
- Throws:
java.io.IOException
write
public boolean write(Message message,
EndPoint 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 © 2009 The Apache Software Foundation