Package io.grpc.netty
Class NettyServerHandler.GracefulShutdown
java.lang.Object
io.grpc.netty.NettyServerHandler.GracefulShutdown
- Enclosing class:
NettyServerHandler
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate long
graceTimeOverrideMillis
(long originalMillis) (package private) void
secondGoAwayAndClose
(io.netty.channel.ChannelHandlerContext ctx) (package private) void
start
(io.netty.channel.ChannelHandlerContext ctx) Sends out first GOAWAY and ping, and schedules second GOAWAY and close.
-
Field Details
-
Constructor Details
-
GracefulShutdown
-
-
Method Details
-
start
void start(io.netty.channel.ChannelHandlerContext ctx) Sends out first GOAWAY and ping, and schedules second GOAWAY and close. -
secondGoAwayAndClose
void secondGoAwayAndClose(io.netty.channel.ChannelHandlerContext ctx) -
graceTimeOverrideMillis
private long graceTimeOverrideMillis(long originalMillis)
-