public class RpcRequestProtocolV1 extends Object implements Protocol<RequestBlock>
| 构造器和说明 |
|---|
RpcRequestProtocolV1() |
| 限定符和类型 | 方法和说明 |
|---|---|
RequestBlock |
decode(io.netty.buffer.ByteBuf buf)
decode stream to object
|
void |
encode(RequestBlock reqMsg,
io.netty.buffer.ByteBuf buf)
encode Message to byte & write to network framework
|
public void encode(RequestBlock reqMsg, io.netty.buffer.ByteBuf buf) throws IOException
encode 在接口中 Protocol<RequestBlock>IOExceptionpublic RequestBlock decode(io.netty.buffer.ByteBuf buf) throws IOException
decode 在接口中 Protocol<RequestBlock>IOExceptionCopyright © 2020–2021. All rights reserved.