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
-
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.void
writeBuffers
(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:
getRemoteName
in classTransceiver
-
transceive
Description copied from class:Transceiver
Called byRequestor.request(String,Object)
for two-way messages. By default callsTransceiver.writeBuffers(List)
followed byTransceiver.readBuffers()
.- Overrides:
transceive
in classTransceiver
- Throws:
IOException
-
readBuffers
Description copied from class:Transceiver
Called by the default definition ofTransceiver.transceive(List)
.- Specified by:
readBuffers
in classTransceiver
- Throws:
IOException
-
writeBuffers
Description copied from class:Transceiver
Called byRequestor.request(String,Object)
for one-way messages.- Specified by:
writeBuffers
in classTransceiver
- Throws:
IOException
-