Package org.apache.avro.ipc
Class HttpTransceiver
java.lang.Object
org.apache.avro.ipc.Transceiver
org.apache.avro.ipc.HttpTransceiver
- All Implemented Interfaces:
Closeable,AutoCloseable
An HTTP-based
Transceiver implementation.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCalled by the default definition ofTransceiver.transceive(List).voidsetTimeout(int timeout) Set the connect and read timeouts, in milliseconds.voidwriteBuffers(List<ByteBuffer> buffers) Called byRequestor.request(String,Object)for one-way messages.Methods inherited from class org.apache.avro.ipc.Transceiver
close, getRemote, isConnected, lockChannel, setRemote, transceive, transceive, unlockChannel
-
Constructor Details
-
HttpTransceiver
-
HttpTransceiver
-
-
Method Details
-
setTimeout
public void setTimeout(int timeout) Set the connect and read timeouts, in milliseconds. -
getRemoteName
- Specified by:
getRemoteNamein classTransceiver
-
readBuffers
Description copied from class:TransceiverCalled by the default definition ofTransceiver.transceive(List).- Specified by:
readBuffersin classTransceiver- Throws:
IOException
-
writeBuffers
Description copied from class:TransceiverCalled byRequestor.request(String,Object)for one-way messages.- Specified by:
writeBuffersin classTransceiver- Throws:
IOException
-