Class LegacySimpleServerConnectionHandler
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
pt.unl.fct.di.novasys.babel2.channels.legacy.simpleServer.LegacySimpleServerConnectionHandler
- All Implemented Interfaces:
io.netty.channel.ChannelHandler, io.netty.channel.ChannelInboundHandler
public class LegacySimpleServerConnectionHandler
extends io.netty.channel.ChannelInboundHandlerAdapter
Inbound handler managing active legacy simple server connections, reading application messages
and managing idle state heartbeat triggers.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
io.netty.channel.ChannelHandler.Sharable -
Constructor Summary
ConstructorsConstructorDescriptionLegacySimpleServerConnectionHandler(LegacySimpleServerBabelChannel channel, Babel runtime, BabelNode peer) Constructs a new legacy connection handler. -
Method Summary
Modifier and TypeMethodDescriptionvoidchannelInactive(io.netty.channel.ChannelHandlerContext ctx) voidchannelRead(io.netty.channel.ChannelHandlerContext ctx, Object msg) voidexceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause) voiduserEventTriggered(io.netty.channel.ChannelHandlerContext ctx, Object evt) Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChangedMethods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
-
Constructor Details
-
LegacySimpleServerConnectionHandler
public LegacySimpleServerConnectionHandler(LegacySimpleServerBabelChannel channel, Babel runtime, BabelNode peer) Constructs a new legacy connection handler.- Parameters:
channel- the parent legacy channelruntime- the Babel runtimepeer- the remote peer node identity
-
-
Method Details
-
channelRead
-
channelInactive
-
exceptionCaught
public void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause) throws Exception - Specified by:
exceptionCaughtin interfaceio.netty.channel.ChannelHandler- Specified by:
exceptionCaughtin interfaceio.netty.channel.ChannelInboundHandler- Overrides:
exceptionCaughtin classio.netty.channel.ChannelInboundHandlerAdapter- Throws:
Exception
-
userEventTriggered
-