Class KafkaChannelInitializer

  • All Implemented Interfaces:
    org.apache.fluss.shaded.netty4.io.netty.channel.ChannelHandler, org.apache.fluss.shaded.netty4.io.netty.channel.ChannelInboundHandler

    public class KafkaChannelInitializer
    extends org.apache.fluss.rpc.netty.NettyChannelInitializer
    A ChannelInitializer for initializing SocketChannel instances that will be used by the server to handle the Kafka requests for the client.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.apache.fluss.shaded.netty4.io.netty.channel.ChannelHandler

        org.apache.fluss.shaded.netty4.io.netty.channel.ChannelHandler.Sharable
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int MAX_FRAME_LENGTH  
    • Constructor Summary

      Constructors 
      Constructor Description
      KafkaChannelInitializer​(org.apache.fluss.rpc.netty.server.RequestChannel[] requestChannels, long maxIdleTimeSeconds)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void initChannel​(org.apache.fluss.shaded.netty4.io.netty.channel.socket.SocketChannel ch)  
      • Methods inherited from class org.apache.fluss.rpc.netty.NettyChannelInitializer

        addFrameDecoder, addIdleStateHandler
      • Methods inherited from class org.apache.fluss.shaded.netty4.io.netty.channel.ChannelInitializer

        channelRegistered, exceptionCaught, handlerAdded, handlerRemoved
      • Methods inherited from class org.apache.fluss.shaded.netty4.io.netty.channel.ChannelInboundHandlerAdapter

        channelActive, channelInactive, channelRead, channelReadComplete, channelUnregistered, channelWritabilityChanged, userEventTriggered
      • Methods inherited from class org.apache.fluss.shaded.netty4.io.netty.channel.ChannelHandlerAdapter

        ensureNotSharable, isSharable
    • Constructor Detail

      • KafkaChannelInitializer

        public KafkaChannelInitializer​(org.apache.fluss.rpc.netty.server.RequestChannel[] requestChannels,
                                       long maxIdleTimeSeconds)
    • Method Detail

      • initChannel

        protected void initChannel​(org.apache.fluss.shaded.netty4.io.netty.channel.socket.SocketChannel ch)
                            throws Exception
        Overrides:
        initChannel in class org.apache.fluss.rpc.netty.NettyChannelInitializer
        Throws:
        Exception