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 TypeMethodDescriptionint
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
-
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 interfaceio.netty.handler.codec.http2.Http2FrameListener
- Overrides:
onSettingsRead
in 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:
onDataRead
in interfaceio.netty.handler.codec.http2.Http2FrameListener
- Overrides:
onDataRead
in 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:
onHeadersRead
in interfaceio.netty.handler.codec.http2.Http2FrameListener
- Overrides:
onHeadersRead
in 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:
onRstStreamRead
in interfaceio.netty.handler.codec.http2.Http2FrameListener
- Overrides:
onRstStreamRead
in 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:
onPingAckRead
in interfaceio.netty.handler.codec.http2.Http2FrameListener
- Overrides:
onPingAckRead
in 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:
onPingRead
in interfaceio.netty.handler.codec.http2.Http2FrameListener
- Overrides:
onPingRead
in classio.netty.handler.codec.http2.Http2FrameAdapter
- Throws:
io.netty.handler.codec.http2.Http2Exception
-