Class KafkaCommandDecoder

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

    public class KafkaCommandDecoder
    extends org.apache.fluss.shaded.netty4.io.netty.channel.SimpleChannelInboundHandler<org.apache.fluss.shaded.netty4.io.netty.buffer.ByteBuf>
    A decoder that decodes the incoming ByteBuf into Kafka requests and sends them to the corresponding RequestChannel.
    • 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
    • Constructor Summary

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void channelActive​(org.apache.fluss.shaded.netty4.io.netty.channel.ChannelHandlerContext ctx)  
      void channelInactive​(org.apache.fluss.shaded.netty4.io.netty.channel.ChannelHandlerContext ctx)  
      void channelRead0​(org.apache.fluss.shaded.netty4.io.netty.channel.ChannelHandlerContext ctx, org.apache.fluss.shaded.netty4.io.netty.buffer.ByteBuf buffer)  
      protected void close()  
      void exceptionCaught​(org.apache.fluss.shaded.netty4.io.netty.channel.ChannelHandlerContext ctx, Throwable cause)  
      void userEventTriggered​(org.apache.fluss.shaded.netty4.io.netty.channel.ChannelHandlerContext ctx, Object evt)  
      • Methods inherited from class org.apache.fluss.shaded.netty4.io.netty.channel.SimpleChannelInboundHandler

        acceptInboundMessage, channelRead
      • Methods inherited from class org.apache.fluss.shaded.netty4.io.netty.channel.ChannelInboundHandlerAdapter

        channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged
      • Methods inherited from class org.apache.fluss.shaded.netty4.io.netty.channel.ChannelHandlerAdapter

        ensureNotSharable, handlerAdded, handlerRemoved, isSharable
      • Methods inherited from interface org.apache.fluss.shaded.netty4.io.netty.channel.ChannelHandler

        handlerAdded, handlerRemoved
    • Field Detail

      • ctx

        protected volatile org.apache.fluss.shaded.netty4.io.netty.channel.ChannelHandlerContext ctx
    • Constructor Detail

      • KafkaCommandDecoder

        public KafkaCommandDecoder​(org.apache.fluss.rpc.netty.server.RequestChannel[] requestChannels)
    • Method Detail

      • channelRead0

        public void channelRead0​(org.apache.fluss.shaded.netty4.io.netty.channel.ChannelHandlerContext ctx,
                                 org.apache.fluss.shaded.netty4.io.netty.buffer.ByteBuf buffer)
                          throws Exception
        Specified by:
        channelRead0 in class org.apache.fluss.shaded.netty4.io.netty.channel.SimpleChannelInboundHandler<org.apache.fluss.shaded.netty4.io.netty.buffer.ByteBuf>
        Throws:
        Exception
      • channelActive

        public void channelActive​(org.apache.fluss.shaded.netty4.io.netty.channel.ChannelHandlerContext ctx)
                           throws Exception
        Specified by:
        channelActive in interface org.apache.fluss.shaded.netty4.io.netty.channel.ChannelInboundHandler
        Overrides:
        channelActive in class org.apache.fluss.shaded.netty4.io.netty.channel.ChannelInboundHandlerAdapter
        Throws:
        Exception
      • channelInactive

        public void channelInactive​(org.apache.fluss.shaded.netty4.io.netty.channel.ChannelHandlerContext ctx)
                             throws Exception
        Specified by:
        channelInactive in interface org.apache.fluss.shaded.netty4.io.netty.channel.ChannelInboundHandler
        Overrides:
        channelInactive in class org.apache.fluss.shaded.netty4.io.netty.channel.ChannelInboundHandlerAdapter
        Throws:
        Exception
      • userEventTriggered

        public void userEventTriggered​(org.apache.fluss.shaded.netty4.io.netty.channel.ChannelHandlerContext ctx,
                                       Object evt)
                                throws Exception
        Specified by:
        userEventTriggered in interface org.apache.fluss.shaded.netty4.io.netty.channel.ChannelInboundHandler
        Overrides:
        userEventTriggered in class org.apache.fluss.shaded.netty4.io.netty.channel.ChannelInboundHandlerAdapter
        Throws:
        Exception
      • close

        protected void close()
      • exceptionCaught

        public void exceptionCaught​(org.apache.fluss.shaded.netty4.io.netty.channel.ChannelHandlerContext ctx,
                                    Throwable cause)
                             throws Exception
        Specified by:
        exceptionCaught in interface org.apache.fluss.shaded.netty4.io.netty.channel.ChannelHandler
        Specified by:
        exceptionCaught in interface org.apache.fluss.shaded.netty4.io.netty.channel.ChannelInboundHandler
        Overrides:
        exceptionCaught in class org.apache.fluss.shaded.netty4.io.netty.channel.ChannelInboundHandlerAdapter
        Throws:
        Exception