public class ServerShutdownHook extends Object
| 构造器和说明 |
|---|
ServerShutdownHook() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addClearAllHook()
添加清除钩子
开启 子线程的方式 帮助 gc
|
ServerShutdownHook |
addRegistry(ServiceRegistry serviceRegistry) |
ServerShutdownHook |
addServer(RpcServer rpcServer) |
static ServerShutdownHook |
getShutdownHook() |
public ServerShutdownHook addRegistry(ServiceRegistry serviceRegistry)
public ServerShutdownHook addServer(RpcServer rpcServer)
public static ServerShutdownHook getShutdownHook()
public void addClearAllHook()
Copyright © 2025. All rights reserved.