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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintonDataRead(io.netty.channel.ChannelHandlerContext ctx, int streamId, io.netty.buffer.ByteBuf data, int padding, boolean endOfStream) voidonHeadersRead(io.netty.channel.ChannelHandlerContext ctx, int streamId, io.netty.handler.codec.http2.Http2Headers headers, int streamDependency, short weight, boolean exclusive, int padding, boolean endStream) voidonPingAckRead(io.netty.channel.ChannelHandlerContext ctx, long ackPayload) voidonPingRead(io.netty.channel.ChannelHandlerContext ctx, long data) voidonRstStreamRead(io.netty.channel.ChannelHandlerContext ctx, int streamId, long errorCode) voidonSettingsRead(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
-
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:
onSettingsReadin interfaceio.netty.handler.codec.http2.Http2FrameListener- Overrides:
onSettingsReadin classio.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:
onDataReadin interfaceio.netty.handler.codec.http2.Http2FrameListener- Overrides:
onDataReadin classio.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:
onHeadersReadin interfaceio.netty.handler.codec.http2.Http2FrameListener- Overrides:
onHeadersReadin classio.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:
onRstStreamReadin interfaceio.netty.handler.codec.http2.Http2FrameListener- Overrides:
onRstStreamReadin classio.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:
onPingAckReadin interfaceio.netty.handler.codec.http2.Http2FrameListener- Overrides:
onPingAckReadin classio.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:
onPingReadin interfaceio.netty.handler.codec.http2.Http2FrameListener- Overrides:
onPingReadin classio.netty.handler.codec.http2.Http2FrameAdapter- Throws:
io.netty.handler.codec.http2.Http2Exception
-