public class MessageSerializer 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 |
---|
MessageSerializer(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, write
bind, close, connect, deregister, disconnect, flush, read
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 MessageSerializer(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