protected void stopAndReleaseGrpcServer ( ) { factory . destroy ( ) ; Server localServer = this . server ; if ( localServer != null ) { localServer . shutdown ( ) ; this . server = null ; log . info ( "gRPC server shutdown." ) ; } }
Initiates an orderly shutdown of the grpc server and releases the references to the server . This call does not wait for the server to be completely shut down .