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
    Modifier and Type
    Field
    Description
    protected final org.slf4j.Logger
    Logger for this class.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    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

    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 logger
      Logger for this class.
  • Constructor Details

    • AutoReadEventHandler

      protected AutoReadEventHandler()
  • Method Details

    • channelActive

      public void channelActive(io.netty.channel.ChannelHandlerContext ctx) throws Exception
      Specified by:
      channelActive in interface io.netty.channel.ChannelInboundHandler
      Overrides:
      channelActive in class io.netty.channel.ChannelInboundHandlerAdapter
      Throws:
      Exception
    • eventReceived

      protected void eventReceived(io.netty.channel.ChannelHandlerContext ctx, NettyConnection.MessageStatus evt)
      Specified by:
      eventReceived in class io.netty.channel.SimpleUserEventChannelHandler<NettyConnection.MessageStatus>