org.apache.avro.ipc
Class Transceiver

java.lang.Object
  extended by org.apache.avro.ipc.Transceiver
All Implemented Interfaces:
Closeable
Direct Known Subclasses:
DatagramTransceiver, HttpTransceiver, LocalTransceiver, SocketTransceiver

public abstract class Transceiver
extends Object
implements Closeable

Base class for transmitters and recievers of raw binary messages.


Constructor Summary
Transceiver()
           
 
Method Summary
 void close()
           
abstract  String getRemoteName()
           
abstract  List<ByteBuffer> readBuffers()
           
 List<ByteBuffer> transceive(List<ByteBuffer> request)
           
abstract  void writeBuffers(List<ByteBuffer> buffers)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Transceiver

public Transceiver()
Method Detail

getRemoteName

public abstract String getRemoteName()

transceive

public List<ByteBuffer> transceive(List<ByteBuffer> request)
                            throws IOException
Throws:
IOException

readBuffers

public abstract List<ByteBuffer> readBuffers()
                                      throws IOException
Throws:
IOException

writeBuffers

public abstract void writeBuffers(List<ByteBuffer> buffers)
                           throws IOException
Throws:
IOException

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Throws:
IOException


Copyright © 2010 The Apache Software Foundation