public class ProtocolCodec
extends io.netty.handler.codec.ByteToMessageCodec
| 限定符和类型 | 字段和说明 |
|---|---|
(专用程序包) Optional<Integer> |
length |
(专用程序包) Class<?> |
protocolClass |
| 构造器和说明 |
|---|
ProtocolCodec(@NonNull Class<?> protocolClass) |
ProtocolCodec(@NonNull Class<?> protocolClass,
int length) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
decode(io.netty.channel.ChannelHandlerContext context,
io.netty.buffer.ByteBuf byteBuf,
List list) |
protected void |
encode(io.netty.channel.ChannelHandlerContext context,
Object object,
io.netty.buffer.ByteBuf byteBuf) |
acceptOutboundMessage, channelInactive, channelRead, channelReadComplete, decodeLast, handlerAdded, handlerRemoved, writebind, close, connect, deregister, disconnect, flush, readchannelActive, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggeredpublic ProtocolCodec(@NonNull
@NonNull Class<?> protocolClass)
public ProtocolCodec(@NonNull
@NonNull Class<?> protocolClass,
int length)
Copyright © 2019–2021 indunet. All rights reserved.