Requestor.TransceiverCallback<T>
rpcMetaPlugins
Constructor and Description |
---|
GenericRequestor(Protocol protocol,
Transceiver transceiver) |
GenericRequestor(Protocol protocol,
Transceiver transceiver,
GenericData data) |
Modifier and Type | Method and Description |
---|---|
GenericData |
getGenericData() |
Exception |
readError(Schema writer,
Schema reader,
Decoder in)
Reads an error message.
|
Object |
readResponse(Schema writer,
Schema reader,
Decoder in)
Reads a response message.
|
void |
writeRequest(Schema schema,
Object request,
Encoder out)
Writes a request message.
|
addRPCPlugin, getLocal, getRemote, getTransceiver, readError, readResponse, request, request
public GenericRequestor(Protocol protocol, Transceiver transceiver) throws IOException
IOException
public GenericRequestor(Protocol protocol, Transceiver transceiver, GenericData data) throws IOException
IOException
public GenericData getGenericData()
public void writeRequest(Schema schema, Object request, Encoder out) throws IOException
Requestor
writeRequest
in class Requestor
IOException
public Object readResponse(Schema writer, Schema reader, Decoder in) throws IOException
Requestor
readResponse
in class Requestor
IOException
public Exception readError(Schema writer, Schema reader, Decoder in) throws IOException
Requestor
readError
in class Requestor
IOException
Copyright © 2009–2022 The Apache Software Foundation. All rights reserved.