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.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
io.netty.channel.ChannelHandler.Sharable
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.netty.channel.ChannelHandler
handlerAdded, handlerRemoved
-
Field Details
-
logger
protected final org.slf4j.Logger loggerLogger for this class.
-
-
Constructor Details
-
AutoReadEventHandler
protected AutoReadEventHandler()
-
-
Method Details
-
channelActive
- 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>
-