📄 shutdownhook.java
字号:
/* * ShutdownHook.java * * Created on April 21, 2005, 3:18 PM */package jwsgrid.resourcemanager.priv;import jwsgrid.resourcemanager.ResourceManager;/** * * @author sean */public class ShutdownHook implements Runnable{ private final int SLEEP_INTERVAL = 3000; private ResourceManager resMgr = null; /** Creates a new instance of ShutdownHook */ public ShutdownHook( ResourceManager resMgr ) { this.resMgr = resMgr; } public void run() { resMgr.stop( true ); while ( !resMgr.shutdownComplete() ) { try { Thread.sleep( SLEEP_INTERVAL ); } catch ( InterruptedException ie ) {} } } }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -