public class RpcDataPackageDecoder
extends io.netty.handler.codec.ByteToMessageDecoder
RpcDataPackage| 构造器和说明 |
|---|
RpcDataPackageDecoder(int chunkPackageTimeout)
Instantiates a new rpc data package decoder.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close()
Close.
|
protected Object |
decode(io.netty.channel.ChannelHandlerContext ctx,
io.netty.buffer.ByteBuf buf)
Decode.
|
protected void |
decode(io.netty.channel.ChannelHandlerContext ctx,
io.netty.buffer.ByteBuf in,
List<Object> out) |
actualReadableBytes, callDecode, channelInactive, channelRead, channelReadComplete, decodeLast, discardSomeReadBytes, handlerRemoved, handlerRemoved0, internalBuffer, isSingleDecode, setCumulator, setDiscardAfterReads, setSingleDecode, userEventTriggeredchannelActive, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaughtpublic RpcDataPackageDecoder(int chunkPackageTimeout)
chunkPackageTimeout - the chunk package timeoutprotected void decode(io.netty.channel.ChannelHandlerContext ctx,
io.netty.buffer.ByteBuf in,
List<Object> out)
throws Exception
decode 在类中 io.netty.handler.codec.ByteToMessageDecoderExceptionprotected Object decode(io.netty.channel.ChannelHandlerContext ctx, io.netty.buffer.ByteBuf buf) throws Exception
ctx - the ctxbuf - the bufException - the exceptionpublic void close()
Copyright © 2022 Baidu, Inc.. All rights reserved.