Class DelegatingInboundHandler
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelInboundHandlerAdapter
-
- org.opendaylight.openflowjava.protocol.impl.core.DelegatingInboundHandler
-
- All Implemented Interfaces:
io.netty.channel.ChannelHandler,io.netty.channel.ChannelInboundHandler
public class DelegatingInboundHandler extends io.netty.channel.ChannelInboundHandlerAdapterHolds reference toConnectionAdapterImpland passes messages for further processing. Also informs on switch disconnection.- Author:
- michal.polkorab
-
-
Constructor Summary
Constructors Constructor Description DelegatingInboundHandler(MessageConsumer connectionAdapter)Constructs class + creates and sets MessageConsumer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidchannelInactive(io.netty.channel.ChannelHandlerContext ctx)voidchannelRead(io.netty.channel.ChannelHandlerContext ctx, Object msg)voidchannelUnregistered(io.netty.channel.ChannelHandlerContext ctx)-
Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelReadComplete, channelRegistered, channelWritabilityChanged, exceptionCaught, userEventTriggered
-
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
-
-
-
-
Constructor Detail
-
DelegatingInboundHandler
public DelegatingInboundHandler(MessageConsumer connectionAdapter)
Constructs class + creates and sets MessageConsumer.- Parameters:
connectionAdapter- reference for adapter communicating with upper layers outside library
-
-
Method Detail
-
channelRead
public void channelRead(io.netty.channel.ChannelHandlerContext ctx, Object msg)- Specified by:
channelReadin interfaceio.netty.channel.ChannelInboundHandler- Overrides:
channelReadin classio.netty.channel.ChannelInboundHandlerAdapter
-
channelInactive
public void channelInactive(io.netty.channel.ChannelHandlerContext ctx)
- Specified by:
channelInactivein interfaceio.netty.channel.ChannelInboundHandler- Overrides:
channelInactivein classio.netty.channel.ChannelInboundHandlerAdapter
-
channelUnregistered
public void channelUnregistered(io.netty.channel.ChannelHandlerContext ctx)
- Specified by:
channelUnregisteredin interfaceio.netty.channel.ChannelInboundHandler- Overrides:
channelUnregisteredin classio.netty.channel.ChannelInboundHandlerAdapter
-
-