Package io.grpc.netty
Class NettyClientHandler.PingCountingFrameWriter
- java.lang.Object
-
- io.netty.handler.codec.http2.DecoratingHttp2FrameWriter
-
- io.grpc.netty.NettyClientHandler.PingCountingFrameWriter
-
- All Implemented Interfaces:
AbstractNettyHandler.PingLimiter,io.netty.handler.codec.http2.Http2DataWriter,io.netty.handler.codec.http2.Http2FrameWriter,java.io.Closeable,java.lang.AutoCloseable
- Enclosing class:
- NettyClientHandler
private static class NettyClientHandler.PingCountingFrameWriter extends io.netty.handler.codec.http2.DecoratingHttp2FrameWriter implements AbstractNettyHandler.PingLimiter
-
-
Field Summary
Fields Modifier and Type Field Description private intpingCount
-
Constructor Summary
Constructors Constructor Description PingCountingFrameWriter(io.netty.handler.codec.http2.Http2FrameWriter delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisPingAllowed()io.netty.channel.ChannelFuturewriteData(io.netty.channel.ChannelHandlerContext ctx, int streamId, io.netty.buffer.ByteBuf data, int padding, boolean endStream, io.netty.channel.ChannelPromise promise)io.netty.channel.ChannelFuturewriteHeaders(io.netty.channel.ChannelHandlerContext ctx, int streamId, io.netty.handler.codec.http2.Http2Headers headers, int padding, boolean endStream, io.netty.channel.ChannelPromise promise)io.netty.channel.ChannelFuturewriteHeaders(io.netty.channel.ChannelHandlerContext ctx, int streamId, io.netty.handler.codec.http2.Http2Headers headers, int streamDependency, short weight, boolean exclusive, int padding, boolean endStream, io.netty.channel.ChannelPromise promise)io.netty.channel.ChannelFuturewritePing(io.netty.channel.ChannelHandlerContext ctx, boolean ack, long data, io.netty.channel.ChannelPromise promise)io.netty.channel.ChannelFuturewriteWindowUpdate(io.netty.channel.ChannelHandlerContext ctx, int streamId, int windowSizeIncrement, io.netty.channel.ChannelPromise promise)
-
-
-
Method Detail
-
isPingAllowed
public boolean isPingAllowed()
- Specified by:
isPingAllowedin interfaceAbstractNettyHandler.PingLimiter
-
writeHeaders
public io.netty.channel.ChannelFuture writeHeaders(io.netty.channel.ChannelHandlerContext ctx, int streamId, io.netty.handler.codec.http2.Http2Headers headers, int padding, boolean endStream, io.netty.channel.ChannelPromise promise)- Specified by:
writeHeadersin interfaceio.netty.handler.codec.http2.Http2FrameWriter- Overrides:
writeHeadersin classio.netty.handler.codec.http2.DecoratingHttp2FrameWriter
-
writeHeaders
public io.netty.channel.ChannelFuture writeHeaders(io.netty.channel.ChannelHandlerContext ctx, int streamId, io.netty.handler.codec.http2.Http2Headers headers, int streamDependency, short weight, boolean exclusive, int padding, boolean endStream, io.netty.channel.ChannelPromise promise)- Specified by:
writeHeadersin interfaceio.netty.handler.codec.http2.Http2FrameWriter- Overrides:
writeHeadersin classio.netty.handler.codec.http2.DecoratingHttp2FrameWriter
-
writeWindowUpdate
public io.netty.channel.ChannelFuture writeWindowUpdate(io.netty.channel.ChannelHandlerContext ctx, int streamId, int windowSizeIncrement, io.netty.channel.ChannelPromise promise)- Specified by:
writeWindowUpdatein interfaceio.netty.handler.codec.http2.Http2FrameWriter- Overrides:
writeWindowUpdatein classio.netty.handler.codec.http2.DecoratingHttp2FrameWriter
-
writePing
public io.netty.channel.ChannelFuture writePing(io.netty.channel.ChannelHandlerContext ctx, boolean ack, long data, io.netty.channel.ChannelPromise promise)- Specified by:
writePingin interfaceio.netty.handler.codec.http2.Http2FrameWriter- Overrides:
writePingin classio.netty.handler.codec.http2.DecoratingHttp2FrameWriter
-
writeData
public io.netty.channel.ChannelFuture writeData(io.netty.channel.ChannelHandlerContext ctx, int streamId, io.netty.buffer.ByteBuf data, int padding, boolean endStream, io.netty.channel.ChannelPromise promise)- Specified by:
writeDatain interfaceio.netty.handler.codec.http2.Http2DataWriter- Overrides:
writeDatain classio.netty.handler.codec.http2.DecoratingHttp2FrameWriter
-
-