public class DelegatingInboundHandler
extends io.netty.channel.ChannelInboundHandlerAdapter
ConnectionAdapterImpl
and passes messages for further processing.
Also informs on switch disconnection.Constructor and Description |
---|
DelegatingInboundHandler(MessageConsumer connectionAdapter)
Constructs class + creates and sets MessageConsumer.
|
Modifier and Type | Method and Description |
---|---|
void |
channelInactive(io.netty.channel.ChannelHandlerContext ctx) |
void |
channelRead(io.netty.channel.ChannelHandlerContext ctx,
Object msg) |
void |
channelUnregistered(io.netty.channel.ChannelHandlerContext ctx) |
channelActive, channelReadComplete, channelRegistered, channelWritabilityChanged, exceptionCaught, userEventTriggered
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
public DelegatingInboundHandler(MessageConsumer connectionAdapter)
connectionAdapter
- reference for adapter communicating with upper layers outside librarypublic void channelRead(io.netty.channel.ChannelHandlerContext ctx, Object msg)
channelRead
in interface io.netty.channel.ChannelInboundHandler
channelRead
in class io.netty.channel.ChannelInboundHandlerAdapter
public void channelInactive(io.netty.channel.ChannelHandlerContext ctx)
channelInactive
in interface io.netty.channel.ChannelInboundHandler
channelInactive
in class io.netty.channel.ChannelInboundHandlerAdapter
public void channelUnregistered(io.netty.channel.ChannelHandlerContext ctx)
channelUnregistered
in interface io.netty.channel.ChannelInboundHandler
channelUnregistered
in class io.netty.channel.ChannelInboundHandlerAdapter
Copyright © 2020 OpenDaylight. All rights reserved.