public enum Level extends Enum<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).
|
public static final Level DISABLED
public static final Level SIMPLE
public static final Level ADVANCED
public static final Level PARANOID
public static Level[] values()
for (Level c : Level.values()) System.out.println(c);
public static Level valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值Copyright © 2021. All rights reserved.