shutdownNow

Available in a dev version: 0․11․0-grpc-186

How to configure

abstract fun shutdownNow(): GrpcServer(source)

Initiates a forceful shutdown in which preexisting and new calls are rejected. Although forceful, the shutdown process is still not instantaneous; isTerminated will likely return false immediately after this method returns. After this call returns, this server has released the listening socket(s) and may be reused by another server.

Calling this method before start will shut down and terminate the server like normal, but prevents starting the server in the future.

Return

this