public class SpecificResponder extends GenericResponder
Responder for generated interfaces.rpcMetaPlugins| Modifier | Constructor and Description | 
|---|---|
  | 
SpecificResponder(Class iface,
                 Object impl)  | 
  | 
SpecificResponder(Protocol protocol,
                 Object impl)  | 
protected  | 
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)  | 
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. 
 | 
readRequest, writeResponseprotected SpecificResponder(Protocol protocol, Object impl, SpecificData data)
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-2012 The Apache Software Foundation. All Rights Reserved.