public class JprotobufRpcMethodInfo extends RpcMethodInfo
inputClasses, method, methodName, nsHeadMeta, outputClass, serviceName, target, threadPool| 构造器和说明 |
|---|
JprotobufRpcMethodInfo(Method method) |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getInputSerializedSize(Object input)
get serialized size of request proto instance
|
int |
getOutputSerializedSize(Object output)
get serialized size of response proto instance
|
Object |
inputDecode(byte[] input)
decode request at server side
|
Object |
inputDecode(io.netty.buffer.ByteBuf input)
decode request at server side
|
Object |
inputDecode(DynamicCompositeByteBuf input) |
byte[] |
inputEncode(Object input)
encode request at client inside
|
void |
inputWriteToStream(Object input,
com.google.protobuf.CodedOutputStream stream)
encode request at client inside
|
Object |
outputDecode(byte[] output)
decode response at client side
|
Object |
outputDecode(io.netty.buffer.ByteBuf output)
decode response at client side
|
Object |
outputDecode(DynamicCompositeByteBuf output) |
byte[] |
outputEncode(Object output)
encode response proto instance at server side
|
void |
outputWriteToStream(Object output,
com.google.protobuf.CodedOutputStream stream)
encode response to stream at server side
|
public JprotobufRpcMethodInfo(Method method)
public byte[] inputEncode(Object input) throws IOException
RpcMethodInfoinputEncode 在类中 RpcMethodInfoinput - the inputIOException - Signals that an I/O exception has occurred.public void inputWriteToStream(Object input, com.google.protobuf.CodedOutputStream stream) throws IOException
RpcMethodInfoinputWriteToStream 在类中 RpcMethodInfoinput - requeststream - out buffer streamIOException - io exceptionpublic Object outputDecode(byte[] output) throws IOException
RpcMethodInfooutputDecode 在类中 RpcMethodInfooutput - response byte arrayIOException - Signals that an I/O exception has occurred.public Object outputDecode(io.netty.buffer.ByteBuf output) throws IOException
RpcMethodInfooutputDecode 在类中 RpcMethodInfooutput - response netty ByteBufIOExceptionpublic Object outputDecode(DynamicCompositeByteBuf output) throws IOException
outputDecode 在类中 RpcMethodInfoIOExceptionpublic Object inputDecode(byte[] input) throws IOException
RpcMethodInfoinputDecode 在类中 RpcMethodInfoinput - request byte arrayIOExceptionpublic Object inputDecode(io.netty.buffer.ByteBuf input) throws IOException
RpcMethodInfoinputDecode 在类中 RpcMethodInfoinput - request netty ByteBufIOExceptionpublic Object inputDecode(DynamicCompositeByteBuf input) throws IOException
inputDecode 在类中 RpcMethodInfoIOExceptionpublic byte[] outputEncode(Object output) throws IOException
RpcMethodInfooutputEncode 在类中 RpcMethodInfooutput - response proto instanceIOExceptionpublic void outputWriteToStream(Object output, com.google.protobuf.CodedOutputStream stream) throws IOException
RpcMethodInfooutputWriteToStream 在类中 RpcMethodInfooutput - response objectstream - output streamIOExceptionpublic int getInputSerializedSize(Object input) throws IOException
RpcMethodInfogetInputSerializedSize 在类中 RpcMethodInfoinput - proto instanceIOExceptionpublic int getOutputSerializedSize(Object output) throws IOException
RpcMethodInfogetOutputSerializedSize 在类中 RpcMethodInfooutput - response objectIOExceptionCopyright © 2019 Baidu, Inc.. All rights reserved.