public interface Compress
| 限定符和类型 | 方法和说明 |
|---|---|
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) |
io.netty.buffer.ByteBuf compressInput(Object proto, RpcMethodInfo rpcMethodInfo) throws IOException
proto - requestrpcMethodInfo - rpc method信息IOException - 序列化失败Object uncompressOutput(io.netty.buffer.ByteBuf byteBuf, RpcMethodInfo rpcMethodInfo) throws IOException
byteBuf - response bufferrpcMethodInfo - rpc method信息IOException - 反序列化失败Object uncompressOutput(byte[] bytes, RpcMethodInfo rpcMethodInfo) throws IOException
IOExceptionObject uncompressOutput(DynamicCompositeByteBuf byteBuf, RpcMethodInfo rpcMethodInfo) throws IOException
IOExceptionio.netty.buffer.ByteBuf compressOutput(Object proto, RpcMethodInfo rpcMethodInfo) throws IOException
proto - response对象rpcMethodInfo - rpc method信息IOException - 序列化异常Object uncompressInput(io.netty.buffer.ByteBuf byteBuf, RpcMethodInfo rpcMethodInfo) throws IOException
byteBuf - request bufferrpcMethodInfo - rpc method信息IOException - 反序列化失败Object uncompressInput(byte[] bytes, RpcMethodInfo rpcMethodInfo) throws IOException
IOExceptionObject uncompressInput(DynamicCompositeByteBuf byteBuf, RpcMethodInfo rpcMethodInfo) throws IOException
IOExceptionCopyright © 2019 Baidu, Inc.. All rights reserved.