Package io.grpc.netty

Class NettyClientHandler.FrameListener

  • All Implemented Interfaces:
    io.netty.handler.codec.http2.Http2FrameListener
    Enclosing class:
    NettyClientHandler

    private class NettyClientHandler.FrameListener
    extends io.netty.handler.codec.http2.Http2FrameAdapter
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private boolean firstSettings  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private FrameListener()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int onDataRead​(io.netty.channel.ChannelHandlerContext ctx, int streamId, io.netty.buffer.ByteBuf data, int padding, boolean endOfStream)  
      void onHeadersRead​(io.netty.channel.ChannelHandlerContext ctx, int streamId, io.netty.handler.codec.http2.Http2Headers headers, int streamDependency, short weight, boolean exclusive, int padding, boolean endStream)  
      void onPingAckRead​(io.netty.channel.ChannelHandlerContext ctx, long ackPayload)  
      void onPingRead​(io.netty.channel.ChannelHandlerContext ctx, long data)  
      void onRstStreamRead​(io.netty.channel.ChannelHandlerContext ctx, int streamId, long errorCode)  
      void onSettingsRead​(io.netty.channel.ChannelHandlerContext ctx, io.netty.handler.codec.http2.Http2Settings settings)  
      • Methods inherited from class io.netty.handler.codec.http2.Http2FrameAdapter

        onGoAwayRead, onHeadersRead, onPriorityRead, onPushPromiseRead, onSettingsAckRead, onUnknownFrame, onWindowUpdateRead
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • firstSettings

        private boolean firstSettings
    • Constructor Detail

      • FrameListener

        private FrameListener()
    • Method Detail

      • onSettingsRead

        public void onSettingsRead​(io.netty.channel.ChannelHandlerContext ctx,
                                   io.netty.handler.codec.http2.Http2Settings settings)
        Specified by:
        onSettingsRead in interface io.netty.handler.codec.http2.Http2FrameListener
        Overrides:
        onSettingsRead in class io.netty.handler.codec.http2.Http2FrameAdapter
      • onDataRead

        public int onDataRead​(io.netty.channel.ChannelHandlerContext ctx,
                              int streamId,
                              io.netty.buffer.ByteBuf data,
                              int padding,
                              boolean endOfStream)
                       throws io.netty.handler.codec.http2.Http2Exception
        Specified by:
        onDataRead in interface io.netty.handler.codec.http2.Http2FrameListener
        Overrides:
        onDataRead in class io.netty.handler.codec.http2.Http2FrameAdapter
        Throws:
        io.netty.handler.codec.http2.Http2Exception
      • onHeadersRead

        public void onHeadersRead​(io.netty.channel.ChannelHandlerContext ctx,
                                  int streamId,
                                  io.netty.handler.codec.http2.Http2Headers headers,
                                  int streamDependency,
                                  short weight,
                                  boolean exclusive,
                                  int padding,
                                  boolean endStream)
                           throws io.netty.handler.codec.http2.Http2Exception
        Specified by:
        onHeadersRead in interface io.netty.handler.codec.http2.Http2FrameListener
        Overrides:
        onHeadersRead in class io.netty.handler.codec.http2.Http2FrameAdapter
        Throws:
        io.netty.handler.codec.http2.Http2Exception
      • onRstStreamRead

        public void onRstStreamRead​(io.netty.channel.ChannelHandlerContext ctx,
                                    int streamId,
                                    long errorCode)
                             throws io.netty.handler.codec.http2.Http2Exception
        Specified by:
        onRstStreamRead in interface io.netty.handler.codec.http2.Http2FrameListener
        Overrides:
        onRstStreamRead in class io.netty.handler.codec.http2.Http2FrameAdapter
        Throws:
        io.netty.handler.codec.http2.Http2Exception
      • onPingAckRead

        public void onPingAckRead​(io.netty.channel.ChannelHandlerContext ctx,
                                  long ackPayload)
                           throws io.netty.handler.codec.http2.Http2Exception
        Specified by:
        onPingAckRead in interface io.netty.handler.codec.http2.Http2FrameListener
        Overrides:
        onPingAckRead in class io.netty.handler.codec.http2.Http2FrameAdapter
        Throws:
        io.netty.handler.codec.http2.Http2Exception
      • onPingRead

        public void onPingRead​(io.netty.channel.ChannelHandlerContext ctx,
                               long data)
                        throws io.netty.handler.codec.http2.Http2Exception
        Specified by:
        onPingRead in interface io.netty.handler.codec.http2.Http2FrameListener
        Overrides:
        onPingRead in class io.netty.handler.codec.http2.Http2FrameAdapter
        Throws:
        io.netty.handler.codec.http2.Http2Exception