Package io.grpc.netty

Class NettyClientHandler.FrameListener

java.lang.Object
io.netty.handler.codec.http2.Http2FrameAdapter
io.grpc.netty.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
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

    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 Details

    • firstSettings

      private boolean firstSettings
  • Constructor Details

    • FrameListener

      private FrameListener()
  • Method Details

    • 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