Package org.apache.avro.ipc
Class DatagramTransceiver
java.lang.Object
org.apache.avro.ipc.Transceiver
org.apache.avro.ipc.DatagramTransceiver
- All Implemented Interfaces:
Closeable,AutoCloseable
A datagram-based
Transceiver implementation. This uses a simple,
non-standard wire protocol and is not intended for production services.-
Constructor Summary
ConstructorsConstructorDescriptionDatagramTransceiver(SocketAddress remote) DatagramTransceiver(DatagramChannel channel) -
Method Summary
Modifier and TypeMethodDescriptionCalled by the default definition ofTransceiver.transceive(List).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
-
DatagramTransceiver
- Throws:
IOException
-
DatagramTransceiver
-
-
Method Details
-
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
-