public static enum ResourceLeakDetector.Level extends java.lang.Enum<ResourceLeakDetector.Level>
枚举常量和说明 |
---|
ADVANCED
Enables advanced sampling resource leak detection which reports where the leaked object was accessed
recently at the cost of high overhead.
|
DISABLED
Disables resource leak detection.
|
PARANOID
Enables paranoid resource leak detection which reports where the leaked object was accessed recently,
at the cost of the highest possible overhead (for testing purposes only).
|
SIMPLE
Enables simplistic sampling resource leak detection which reports there is a leak or not,
at the cost of small overhead (default).
|
限定符和类型 | 方法和说明 |
---|---|
static ResourceLeakDetector.Level |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static ResourceLeakDetector.Level[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final ResourceLeakDetector.Level DISABLED
public static final ResourceLeakDetector.Level SIMPLE
public static final ResourceLeakDetector.Level ADVANCED
public static final ResourceLeakDetector.Level PARANOID
public static ResourceLeakDetector.Level[] values()
for (ResourceLeakDetector.Level c : ResourceLeakDetector.Level.values()) System.out.println(c);
public static ResourceLeakDetector.Level valueOf(java.lang.String name)
name
- 要返回的枚举常量的名称。java.lang.IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException
- 如果参数为空值