public class ProtocolMultiplexerDecoder
extends io.netty.handler.codec.ByteToMessageDecoder
ProtocolMultiplexerChannelInitializer class and then passed in while
instantiating this class.| Modifier and Type | Field and Description |
|---|---|
private int |
bytesForProtocolCheck |
private static org.slf4j.Logger |
LOG |
private LoginProtocol |
loginProtocol |
| Constructor and Description |
|---|
ProtocolMultiplexerDecoder(int bytesForProtocolCheck,
LoginProtocol loginProtocol) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
close(io.netty.buffer.ByteBuf buffer,
io.netty.channel.ChannelHandlerContext ctx) |
protected void |
decode(io.netty.channel.ChannelHandlerContext ctx,
io.netty.buffer.ByteBuf in,
List<Object> out) |
int |
getBytesForProtocolCheck() |
LoginProtocol |
getLoginProtocol() |
actualReadableBytes, callDecode, channelInactive, channelRead, channelReadComplete, decodeLast, handlerRemoved, handlerRemoved0, internalBuffer, isSingleDecode, setSingleDecodechannelActive, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggeredprivate static final org.slf4j.Logger LOG
private final LoginProtocol loginProtocol
private final int bytesForProtocolCheck
public ProtocolMultiplexerDecoder(int bytesForProtocolCheck,
LoginProtocol loginProtocol)
protected void decode(io.netty.channel.ChannelHandlerContext ctx,
io.netty.buffer.ByteBuf in,
List<Object> out)
throws Exception
decode in class io.netty.handler.codec.ByteToMessageDecoderExceptionprotected void close(io.netty.buffer.ByteBuf buffer,
io.netty.channel.ChannelHandlerContext ctx)
public LoginProtocol getLoginProtocol()
public int getBytesForProtocolCheck()
Copyright © 2013. All Rights Reserved.