Package io.grpc.netty

Class NettyServerHandler.GracefulShutdown

java.lang.Object
io.grpc.netty.NettyServerHandler.GracefulShutdown
Enclosing class:
NettyServerHandler

private final class NettyServerHandler.GracefulShutdown extends Object
  • Field Details

    • goAwayMessage

      String goAwayMessage
    • graceTimeInNanos

      @CheckForNull Long graceTimeInNanos
      The grace time between starting graceful shutdown and closing the netty channel, null is unspecified.
    • pingAckedOrTimeout

      boolean pingAckedOrTimeout
      True if ping is Acked or ping is timeout.
    • pingFuture

      Future<?> pingFuture
  • Constructor Details

  • 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)