Class 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 Logger logger
      Logger for this class.
    • 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
      • Methods inherited from interface io.netty.channel.ChannelHandler

        handlerAdded, handlerRemoved
    • Field Detail

      • logger

        protected final Logger logger
        Logger for this class.
    • Constructor Detail

      • AutoReadEventHandler

        protected AutoReadEventHandler()
    • Method Detail

      • 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