Package org.apache.avro.ipc
Class LocalTransceiver
java.lang.Object
org.apache.avro.ipc.Transceiver
org.apache.avro.ipc.LocalTransceiver
- All Implemented Interfaces:
Closeable,AutoCloseable
Implementation of IPC that remains in process.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCalled by the default definition ofTransceiver.transceive(List).transceive(List<ByteBuffer> request) Called byRequestor.request(String,Object)for two-way messages.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, unlockChannel
-
Constructor Details
-
LocalTransceiver
-
-
Method Details
-
getRemoteName
- Specified by:
getRemoteNamein classTransceiver
-
transceive
Description copied from class:TransceiverCalled byRequestor.request(String,Object)for two-way messages. By default callsTransceiver.writeBuffers(List)followed byTransceiver.readBuffers().- Overrides:
transceivein classTransceiver- Throws:
IOException
-
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
-