Package org.ldaptive.transport.netty
Class NettyConnection.AutoReadEventHandler
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelInboundHandlerAdapter
-
- io.netty.channel.SimpleUserEventChannelHandler<NettyConnection.MessageStatus>
-
- org.ldaptive.transport.netty.NettyConnection.AutoReadEventHandler
-
- All Implemented Interfaces:
io.netty.channel.ChannelHandler
,io.netty.channel.ChannelInboundHandler
- Enclosing class:
- NettyConnection
@Sharable protected static class NettyConnection.AutoReadEventHandler extends io.netty.channel.SimpleUserEventChannelHandler<NettyConnection.MessageStatus>
Initiates a channel read when an LDAP message has been processed and auto read is false. This handler also initiates a channel read when it becomes active to bootstrap the initial read.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AutoReadEventHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
channelActive(io.netty.channel.ChannelHandlerContext ctx)
protected void
eventReceived(io.netty.channel.ChannelHandlerContext ctx, NettyConnection.MessageStatus evt)
-
Methods inherited from class io.netty.channel.SimpleUserEventChannelHandler
acceptEvent, userEventTriggered
-
Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelInactive, channelRead, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught
-
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
-
-
-
-
Field Detail
-
logger
protected final Logger logger
Logger for this class.
-
-
Method Detail
-
channelActive
public void channelActive(io.netty.channel.ChannelHandlerContext ctx) throws Exception
- Specified by:
channelActive
in interfaceio.netty.channel.ChannelInboundHandler
- Overrides:
channelActive
in classio.netty.channel.ChannelInboundHandlerAdapter
- Throws:
Exception
-
eventReceived
protected void eventReceived(io.netty.channel.ChannelHandlerContext ctx, NettyConnection.MessageStatus evt)
- Specified by:
eventReceived
in classio.netty.channel.SimpleUserEventChannelHandler<NettyConnection.MessageStatus>
-
-