Package org.apache.avro.ipc.generic
Class GenericRequestor
java.lang.Object
org.apache.avro.ipc.Requestor
org.apache.avro.ipc.generic.GenericRequestor
Requestor
implementation for generic Java data.-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.avro.ipc.Requestor
Requestor.TransceiverCallback<T>
-
Field Summary
Fields inherited from class org.apache.avro.ipc.Requestor
rpcMetaPlugins
-
Constructor Summary
ConstructorDescriptionGenericRequestor
(Protocol protocol, Transceiver transceiver) GenericRequestor
(Protocol protocol, Transceiver transceiver, GenericData data) -
Method Summary
Modifier and TypeMethodDescriptionReads an error message.readResponse
(Schema writer, Schema reader, Decoder in) Reads a response message.void
writeRequest
(Schema schema, Object request, Encoder out) Writes a request message.Methods inherited from class org.apache.avro.ipc.Requestor
addRPCPlugin, getLocal, getRemote, getTransceiver, readError, readResponse, request, request
-
Constructor Details
-
GenericRequestor
- Throws:
IOException
-
GenericRequestor
public GenericRequestor(Protocol protocol, Transceiver transceiver, GenericData data) throws IOException - Throws:
IOException
-
-
Method Details
-
getGenericData
-
writeRequest
Description copied from class:Requestor
Writes a request message.- Specified by:
writeRequest
in classRequestor
- Throws:
IOException
-
readResponse
Description copied from class:Requestor
Reads a response message.- Specified by:
readResponse
in classRequestor
- Throws:
IOException
-
readError
Description copied from class:Requestor
Reads an error message.- Specified by:
readError
in classRequestor
- Throws:
IOException
-