public class ConnectionLifecycleHandler<I,O>
extends io.netty.channel.ChannelInboundHandlerAdapter
Constructor and Description |
---|
ConnectionLifecycleHandler(ConnectionHandler<I,O> connectionHandler,
ObservableConnectionFactory<I,O> connectionFactory,
ErrorHandler errorHandler,
MetricEventsSubject<ServerMetricsEvent<?>> eventsSubject) |
Modifier and Type | Method and Description |
---|---|
void |
channelActive(io.netty.channel.ChannelHandlerContext ctx) |
void |
channelUnregistered(io.netty.channel.ChannelHandlerContext ctx) |
void |
userEventTriggered(io.netty.channel.ChannelHandlerContext ctx,
java.lang.Object evt) |
channelInactive, channelRead, channelReadComplete, channelRegistered, channelWritabilityChanged, exceptionCaught
handlerAdded, handlerRemoved, isSharable
public ConnectionLifecycleHandler(ConnectionHandler<I,O> connectionHandler, ObservableConnectionFactory<I,O> connectionFactory, ErrorHandler errorHandler, MetricEventsSubject<ServerMetricsEvent<?>> eventsSubject)
public void channelUnregistered(io.netty.channel.ChannelHandlerContext ctx) throws java.lang.Exception
channelUnregistered
in interface io.netty.channel.ChannelInboundHandler
channelUnregistered
in class io.netty.channel.ChannelInboundHandlerAdapter
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