接口 Cleaner
public interface Cleaner
Wrapper for
Cleaner
providing registration support.- 从以下版本开始:
- 3.2.0
- 作者:
- Phillip Webb
-
字段概要
字段 -
方法概要
修饰符和类型方法说明Registers an object and the clean action to run when the object becomes phantom reachable.
-
字段详细资料
-
instance
Provides access to the default clean instance which delegates toCleaner
.
-
-
方法详细资料
-
register
Registers an object and the clean action to run when the object becomes phantom reachable.- 参数:
obj
- the object to monitoraction
- the cleanup action to run- 返回:
- a
Cleaner.Cleanable
instance - 另请参阅:
-