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 TypeMethodDescriptionvoidchannelActive(io.netty.channel.ChannelHandlerContext ctx) protected voideventReceived(io.netty.channel.ChannelHandlerContext ctx, NettyConnection.MessageStatus evt) Methods inherited from class io.netty.channel.SimpleUserEventChannelHandler
acceptEvent, userEventTriggeredMethods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelInactive, channelRead, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaughtMethods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharableMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.netty.channel.ChannelHandler
handlerAdded, handlerRemoved
-
Field Details
-
logger
Logger for this class.
-
-
Constructor Details
-
AutoReadEventHandler
protected AutoReadEventHandler()
-
-
Method Details
-
channelActive
- Specified by:
channelActivein interfaceio.netty.channel.ChannelInboundHandler- Overrides:
channelActivein classio.netty.channel.ChannelInboundHandlerAdapter- Throws:
Exception
-
eventReceived
protected void eventReceived(io.netty.channel.ChannelHandlerContext ctx, NettyConnection.MessageStatus evt) - Specified by:
eventReceivedin classio.netty.channel.SimpleUserEventChannelHandler<NettyConnection.MessageStatus>
-