public class ProtocolMultiplexerChannelInitializer
extends io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>
| Modifier and Type | Field and Description |
|---|---|
private int |
bytesForProtocolCheck |
private LoginProtocol |
loginProtocol |
private static int |
MAX_IDLE_SECONDS |
| Constructor and Description |
|---|
ProtocolMultiplexerChannelInitializer() |
| Modifier and Type | Method and Description |
|---|---|
protected io.netty.channel.ChannelHandler |
createProtcolMultiplexerDecoder() |
int |
getBytesForProtocolCheck() |
LoginProtocol |
getLoginProtocol() |
protected void |
initChannel(io.netty.channel.socket.SocketChannel ch) |
void |
setBytesForProtocolCheck(int bytesForProtocolCheck) |
void |
setLoginProtocol(LoginProtocol loginProtocol) |
channelActive, channelInactive, channelRead, channelReadComplete, channelUnregistered, channelWritabilityChanged, userEventTriggeredexceptionCaught, handlerAdded, handlerRemovedprivate static final int MAX_IDLE_SECONDS
private int bytesForProtocolCheck
private LoginProtocol loginProtocol
public ProtocolMultiplexerChannelInitializer()
protected void initChannel(io.netty.channel.socket.SocketChannel ch)
throws Exception
initChannel in class io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>Exceptionprotected io.netty.channel.ChannelHandler createProtcolMultiplexerDecoder()
public int getBytesForProtocolCheck()
public void setBytesForProtocolCheck(int bytesForProtocolCheck)
public LoginProtocol getLoginProtocol()
public void setLoginProtocol(LoginProtocol loginProtocol)
Copyright © 2013. All Rights Reserved.