public class HandshakeMessageHandler<S extends java.lang.Enum<S> & IHandshakeState<S>> extends io.netty.channel.SimpleChannelInboundHandler<FMLHandshakeMessage>
Modifier and Type | Field and Description |
---|---|
private S |
errorState |
private io.netty.util.AttributeKey<S> |
fmlHandshakeState |
private S |
initialState |
private static io.netty.util.AttributeKey<IHandshakeState<?>> |
STATE |
private java.lang.Class<S> |
stateType |
Constructor and Description |
---|
HandshakeMessageHandler(java.lang.Class<S> stateType) |
Modifier and Type | Method and Description |
---|---|
void |
channelActive(io.netty.channel.ChannelHandlerContext ctx) |
protected void |
channelRead0(io.netty.channel.ChannelHandlerContext ctx,
FMLHandshakeMessage msg) |
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
java.lang.Throwable cause) |
void |
userEventTriggered(io.netty.channel.ChannelHandlerContext ctx,
java.lang.Object evt) |
acceptInboundMessage, channelRead
channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
private static final io.netty.util.AttributeKey<IHandshakeState<?>> STATE
private final io.netty.util.AttributeKey<S extends java.lang.Enum<S> & IHandshakeState<S>> fmlHandshakeState
private final S extends java.lang.Enum<S> & IHandshakeState<S> initialState
private final S extends java.lang.Enum<S> & IHandshakeState<S> errorState
private final java.lang.Class<S extends java.lang.Enum<S> & IHandshakeState<S>> stateType
public HandshakeMessageHandler(java.lang.Class<S> stateType)
protected void channelRead0(io.netty.channel.ChannelHandlerContext ctx, FMLHandshakeMessage msg) throws java.lang.Exception
channelRead0
in class io.netty.channel.SimpleChannelInboundHandler<FMLHandshakeMessage>
java.lang.Exception
public void channelActive(io.netty.channel.ChannelHandlerContext ctx) throws java.lang.Exception
channelActive
in interface io.netty.channel.ChannelInboundHandler
channelActive
in class io.netty.channel.ChannelInboundHandlerAdapter
java.lang.Exception
public void userEventTriggered(io.netty.channel.ChannelHandlerContext ctx, java.lang.Object evt) throws java.lang.Exception
userEventTriggered
in interface io.netty.channel.ChannelInboundHandler
userEventTriggered
in class io.netty.channel.ChannelInboundHandlerAdapter
java.lang.Exception
public void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx, java.lang.Throwable cause) throws java.lang.Exception
exceptionCaught
in interface io.netty.channel.ChannelHandler
exceptionCaught
in interface io.netty.channel.ChannelInboundHandler
exceptionCaught
in class io.netty.channel.ChannelInboundHandlerAdapter
java.lang.Exception