public class SpecificResponder extends GenericResponder
Responder for generated interfaces.rpcMetaPlugins| Constructor and Description | 
|---|
| SpecificResponder(Class iface,
                 Object impl) | 
| SpecificResponder(Class iface,
                 Object impl,
                 SpecificData data) | 
| SpecificResponder(Protocol protocol,
                 Object impl) | 
| SpecificResponder(Protocol protocol,
                 Object impl,
                 SpecificData data) | 
| Modifier and Type | Method and Description | 
|---|---|
| protected DatumReader<Object> | getDatumReader(Schema actual,
              Schema expected) | 
| protected DatumWriter<Object> | getDatumWriter(Schema schema) | 
| SpecificData | getSpecificData() | 
| Object | respond(Protocol.Message message,
       Object request)Computes the response for a message. | 
| void | writeError(Schema schema,
          Object error,
          Encoder out)Writes an error message. | 
getGenericData, readRequest, writeResponsepublic SpecificResponder(Class iface, Object impl, SpecificData data)
public SpecificResponder(Protocol protocol, Object impl, SpecificData data)
public SpecificData getSpecificData()
protected DatumWriter<Object> getDatumWriter(Schema schema)
getDatumWriter in class GenericResponderprotected DatumReader<Object> getDatumReader(Schema actual, Schema expected)
getDatumReader in class GenericResponderpublic void writeError(Schema schema, Object error, Encoder out) throws IOException
ResponderwriteError in class GenericResponderIOExceptionCopyright © 2009–2020 The Apache Software Foundation. All rights reserved.