org.apache.avro.ipc
Class HttpTransceiver
java.lang.Object
org.apache.avro.ipc.Transceiver
org.apache.avro.ipc.HttpTransceiver
- All Implemented Interfaces:
- Closeable
public class HttpTransceiver
- extends Transceiver
An HTTP-based Transceiver
implementation.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HttpTransceiver
public HttpTransceiver(URL url)
setTimeout
public void setTimeout(int timeout)
- Set the connect and read timeouts, in milliseconds.
getRemoteName
public String getRemoteName()
- Specified by:
getRemoteName
in class Transceiver
readBuffers
public List<ByteBuffer> readBuffers()
throws IOException
- Description copied from class:
Transceiver
- Called by the default definition of
Transceiver.transceive(List)
.
- Specified by:
readBuffers
in class Transceiver
- Throws:
IOException
writeBuffers
public void writeBuffers(List<ByteBuffer> buffers)
throws IOException
- Description copied from class:
Transceiver
- Called by
Requestor.request(String,Object)
for one-way messages.
- Specified by:
writeBuffers
in class Transceiver
- Throws:
IOException
Copyright © 2011 The Apache Software Foundation. All Rights Reserved.