org.apache.avro.ipc
Class DatagramTransceiver

java.lang.Object
  extended by org.apache.avro.ipc.Transceiver
      extended by org.apache.avro.ipc.DatagramTransceiver

public class DatagramTransceiver
extends Transceiver

A datagram-based Transceiver implementation.


Constructor Summary
DatagramTransceiver(DatagramChannel channel)
           
DatagramTransceiver(SocketAddress remote)
           
 
Method Summary
 String getRemoteName()
           
 List<ByteBuffer> readBuffers()
           
 void writeBuffers(List<ByteBuffer> buffers)
           
 
Methods inherited from class org.apache.avro.ipc.Transceiver
close, transceive
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatagramTransceiver

public DatagramTransceiver(SocketAddress remote)
                    throws IOException
Throws:
IOException

DatagramTransceiver

public DatagramTransceiver(DatagramChannel channel)
Method Detail

getRemoteName

public String getRemoteName()
Specified by:
getRemoteName in class Transceiver

readBuffers

public List<ByteBuffer> readBuffers()
                             throws IOException
Specified by:
readBuffers in class Transceiver
Throws:
IOException

writeBuffers

public void writeBuffers(List<ByteBuffer> buffers)
                  throws IOException
Specified by:
writeBuffers in class Transceiver
Throws:
IOException


Copyright © 2009 The Apache Software Foundation