public class NettyPacketEncoder extends io.netty.handler.codec.MessageToByteEncoder<Packet<?>>
Modifier and Type | Field and Description |
---|---|
private EnumPacketDirection |
direction |
private static org.apache.logging.log4j.Logger |
LOGGER |
private static org.apache.logging.log4j.Marker |
RECEIVED_PACKET_MARKER |
Constructor and Description |
---|
NettyPacketEncoder(EnumPacketDirection direction) |
Modifier and Type | Method and Description |
---|---|
protected void |
encode(io.netty.channel.ChannelHandlerContext p_encode_1_,
Packet<?> p_encode_2_,
io.netty.buffer.ByteBuf p_encode_3_) |
acceptOutboundMessage, allocateBuffer, isPreferDirect, write
bind, close, connect, deregister, disconnect, flush, read
ensureNotSharable, exceptionCaught, handlerAdded, handlerRemoved, isSharable
private static final org.apache.logging.log4j.Logger LOGGER
private static final org.apache.logging.log4j.Marker RECEIVED_PACKET_MARKER
private final EnumPacketDirection direction
public NettyPacketEncoder(EnumPacketDirection direction)
protected void encode(io.netty.channel.ChannelHandlerContext p_encode_1_, Packet<?> p_encode_2_, io.netty.buffer.ByteBuf p_encode_3_) throws java.io.IOException, java.lang.Exception
encode
in class io.netty.handler.codec.MessageToByteEncoder<Packet<?>>
java.io.IOException
java.lang.Exception