Package io.grpc.netty
Class NettyServerHandler.KeepAlivePinger
- java.lang.Object
-
- io.grpc.netty.NettyServerHandler.KeepAlivePinger
-
- All Implemented Interfaces:
KeepAliveManager.KeepAlivePinger
- Enclosing class:
- NettyServerHandler
private final class NettyServerHandler.KeepAlivePinger extends java.lang.Object implements KeepAliveManager.KeepAlivePinger
-
-
Field Summary
Fields Modifier and Type Field Description (package private) io.netty.channel.ChannelHandlerContext
ctx
-
Constructor Summary
Constructors Constructor Description KeepAlivePinger(io.netty.channel.ChannelHandlerContext ctx)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onPingTimeout()
Callback when Ping Ack was not received in KEEPALIVE_TIMEOUT.void
ping()
Sends out a keep-alive ping.
-
-
-
Method Detail
-
ping
public void ping()
Description copied from interface:KeepAliveManager.KeepAlivePinger
Sends out a keep-alive ping.- Specified by:
ping
in interfaceKeepAliveManager.KeepAlivePinger
-
onPingTimeout
public void onPingTimeout()
Description copied from interface:KeepAliveManager.KeepAlivePinger
Callback when Ping Ack was not received in KEEPALIVE_TIMEOUT. Should shutdown the transport.- Specified by:
onPingTimeout
in interfaceKeepAliveManager.KeepAlivePinger
-
-