public abstract class PacketCodec<T extends DatabaseProtocolPacket>
extends <any>
| Constructor and Description |
|---|
PacketCodec() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
decode(ChannelHandlerContext context,
ByteBuf in,
List<Object> out) |
protected abstract void |
doDecode(ChannelHandlerContext context,
ByteBuf in,
List<Object> out,
int readableBytes) |
protected abstract void |
doEncode(ChannelHandlerContext context,
T message,
ByteBuf out) |
protected void |
encode(ChannelHandlerContext context,
T message,
ByteBuf out) |
protected abstract boolean |
isValidHeader(int readableBytes) |
protected abstract boolean isValidHeader(int readableBytes)
protected abstract void doDecode(ChannelHandlerContext context,
ByteBuf in,
List<Object> out,
int readableBytes)
protected void encode(ChannelHandlerContext context,
T message,
ByteBuf out)
protected abstract void doEncode(ChannelHandlerContext context,
T message,
ByteBuf out)
Copyright © 2018. All rights reserved.