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
ConstructorsConstructorDescriptionGenericRequestor(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.voidwriteRequest(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:RequestorWrites a request message.- Specified by:
writeRequestin classRequestor- Throws:
IOException
-
readResponse
Description copied from class:RequestorReads a response message.- Specified by:
readResponsein classRequestor- Throws:
IOException
-
readError
Description copied from class:RequestorReads an error message.- Specified by:
readErrorin classRequestor- Throws:
IOException
-