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, writeResponse
protected SpecificResponder(Protocol protocol, Object impl, SpecificData data)
protected DatumWriter<Object> getDatumWriter(Schema schema)
getDatumWriter
in class GenericResponder
protected DatumReader<Object> getDatumReader(Schema actual, Schema expected)
getDatumReader
in class GenericResponder
public void writeError(Schema schema, Object error, Encoder out) throws IOException
Responder
writeError
in class GenericResponder
IOException
Copyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.