Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
添加将在服务器上下文被取消前接收通知的指定 [ShutdownListener] 对象。
void ServerContext.addShutdownListener(ShutdownListener sl)
sl 关机时要通知的 ShutdownListener 对象。
关机时,调用 [ShutdownListener.shutdownPerformed(ServerContext)] 方法。