public class Shutdown extends Object
| 构造器和说明 |
|---|
Shutdown() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
add(Destroyable destroyable)
增加
|
static ThreadGroup |
getRootThreadGroup()
顶层的线程组(估计是Main线程的组)
|
static boolean |
register(Destroyable destroyable)
注册Destroyable
|
boolean |
remove(Destroyable destroyable)
删除
|
static void |
shutdown()
模拟系统调用shutdown
|
static boolean |
unregister(Destroyable destroyable)
删除Destroyable注册
|
public static boolean register(Destroyable destroyable)
destroyable - 实现可销毁接口的对象public static boolean unregister(Destroyable destroyable)
destroyable - 实现可销毁接口的对象public static void shutdown()
public static ThreadGroup getRootThreadGroup()
public boolean add(Destroyable destroyable)
destroyable - 实现可销毁接口的对象public boolean remove(Destroyable destroyable)
destroyable - 实现可销毁接口的对象Copyright © 2020. All rights reserved.