org.apache.cassandra.net
Class UdpConnection

java.lang.Object
  extended by org.apache.cassandra.net.SelectionKeyHandler
      extended by org.apache.cassandra.net.UdpConnection

public class UdpConnection
extends SelectionKeyHandler


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

UdpConnection

public UdpConnection()
Method Detail

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