| 构造器和说明 |
|---|
NoneCompress() |
| 限定符和类型 | 方法和说明 |
|---|---|
io.netty.buffer.ByteBuf |
compressInput(Object proto,
RpcMethodInfo rpcMethodInfo)
client端encode request并压缩
|
io.netty.buffer.ByteBuf |
compressOutput(Object proto,
RpcMethodInfo rpcMethodInfo)
server序列化response并压缩
|
Object |
uncompressInput(byte[] bytes,
RpcMethodInfo rpcMethodInfo) |
Object |
uncompressInput(io.netty.buffer.ByteBuf byteBuf,
RpcMethodInfo rpcMethodInfo)
server端解压缩并decode request
|
Object |
uncompressInput(DynamicCompositeByteBuf byteBuf,
RpcMethodInfo rpcMethodInfo) |
Object |
uncompressOutput(byte[] bytes,
RpcMethodInfo rpcMethodInfo) |
Object |
uncompressOutput(io.netty.buffer.ByteBuf byteBuf,
RpcMethodInfo rpcMethodInfo)
client端解压缩并反序列化response
|
Object |
uncompressOutput(DynamicCompositeByteBuf byteBuf,
RpcMethodInfo rpcMethodInfo) |
public io.netty.buffer.ByteBuf compressInput(Object proto, RpcMethodInfo rpcMethodInfo) throws IOException
CompresscompressInput 在接口中 Compressproto - requestrpcMethodInfo - rpc method信息IOException - 序列化失败public Object uncompressOutput(io.netty.buffer.ByteBuf byteBuf, RpcMethodInfo rpcMethodInfo) throws IOException
CompressuncompressOutput 在接口中 CompressbyteBuf - response bufferrpcMethodInfo - rpc method信息IOException - 反序列化失败public Object uncompressOutput(byte[] bytes, RpcMethodInfo rpcMethodInfo) throws IOException
uncompressOutput 在接口中 CompressIOExceptionpublic Object uncompressOutput(DynamicCompositeByteBuf byteBuf, RpcMethodInfo rpcMethodInfo) throws IOException
uncompressOutput 在接口中 CompressIOExceptionpublic io.netty.buffer.ByteBuf compressOutput(Object proto, RpcMethodInfo rpcMethodInfo) throws IOException
CompresscompressOutput 在接口中 Compressproto - response对象rpcMethodInfo - rpc method信息IOException - 序列化异常public Object uncompressInput(io.netty.buffer.ByteBuf byteBuf, RpcMethodInfo rpcMethodInfo) throws IOException
CompressuncompressInput 在接口中 CompressbyteBuf - request bufferrpcMethodInfo - rpc method信息IOException - 反序列化失败public Object uncompressInput(byte[] bytes, RpcMethodInfo rpcMethodInfo) throws IOException
uncompressInput 在接口中 CompressIOExceptionpublic Object uncompressInput(DynamicCompositeByteBuf byteBuf, RpcMethodInfo rpcMethodInfo) throws IOException
uncompressInput 在接口中 CompressIOExceptionCopyright © 2019 Baidu, Inc.. All rights reserved.