Package org.apache.avro.ipc.specific
Class SpecificResponder
java.lang.Object
org.apache.avro.ipc.Responder
org.apache.avro.ipc.generic.GenericResponder
org.apache.avro.ipc.specific.SpecificResponder
- Direct Known Subclasses:
ReflectResponder
Responder
for generated interfaces.-
Field Summary
Fields inherited from class org.apache.avro.ipc.Responder
rpcMetaPlugins
-
Constructor Summary
ConstructorDescriptionSpecificResponder
(Class iface, Object impl) SpecificResponder
(Class iface, Object impl, SpecificData data) SpecificResponder
(Protocol protocol, Object impl) SpecificResponder
(Protocol protocol, Object impl, SpecificData data) -
Method Summary
Modifier and TypeMethodDescriptionprotected DatumReader
<Object> getDatumReader
(Schema actual, Schema expected) protected DatumWriter
<Object> getDatumWriter
(Schema schema) respond
(Protocol.Message message, Object request) Computes the response for a message.void
writeError
(Schema schema, Object error, Encoder out) Writes an error message.Methods inherited from class org.apache.avro.ipc.generic.GenericResponder
getGenericData, readRequest, writeResponse
-
Constructor Details
-
SpecificResponder
-
SpecificResponder
-
SpecificResponder
-
SpecificResponder
-
-
Method Details
-
getSpecificData
-
getDatumWriter
- Overrides:
getDatumWriter
in classGenericResponder
-
getDatumReader
- Overrides:
getDatumReader
in classGenericResponder
-
writeError
Description copied from class:Responder
Writes an error message.- Overrides:
writeError
in classGenericResponder
- Throws:
IOException
-
respond
Description copied from class:Responder
Computes the response for a message.
-