public class Http2PingHandler
extends io.netty.channel.SimpleChannelInboundHandler<io.netty.handler.codec.http2.Http2PingFrame>
Channel to periodically check the health of HTTP2 connections via PING frames.
If a channel is found to be unhealthy, this will invoke ChannelPipeline.fireExceptionCaught(Throwable).| Constructor and Description |
|---|
Http2PingHandler(int pingTimeoutMillis) |
| Modifier and Type | Method and Description |
|---|---|
void |
channelInactive(io.netty.channel.ChannelHandlerContext ctx) |
protected void |
channelRead0(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http2.Http2PingFrame frame) |
void |
handlerAdded(io.netty.channel.ChannelHandlerContext ctx) |
void |
handlerRemoved(io.netty.channel.ChannelHandlerContext ctx) |
acceptInboundMessage, channelReadpublic void handlerAdded(io.netty.channel.ChannelHandlerContext ctx)
handlerAdded in interface io.netty.channel.ChannelHandlerhandlerAdded in class io.netty.channel.ChannelHandlerAdapterpublic void handlerRemoved(io.netty.channel.ChannelHandlerContext ctx)
handlerRemoved in interface io.netty.channel.ChannelHandlerhandlerRemoved in class io.netty.channel.ChannelHandlerAdapterpublic void channelInactive(io.netty.channel.ChannelHandlerContext ctx)
channelInactive in interface io.netty.channel.ChannelInboundHandlerchannelInactive in class io.netty.channel.ChannelInboundHandlerAdapterprotected void channelRead0(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http2.Http2PingFrame frame)
channelRead0 in class io.netty.channel.SimpleChannelInboundHandler<io.netty.handler.codec.http2.Http2PingFrame>Copyright © 2019. All rights reserved.