Level Type — netty Architecture
Architecture documentation for the Level type/interface in ResourceLeakDetector.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 60e0dae8_f9ca_ee88_c7f9_64f32db0e7a0["Level"] d32ce738_76fd_52e1_72e6_97f959369f2a["ResourceLeakDetector.java"] 60e0dae8_f9ca_ee88_c7f9_64f32db0e7a0 -->|defined in| d32ce738_76fd_52e1_72e6_97f959369f2a style 60e0dae8_f9ca_ee88_c7f9_64f32db0e7a0 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
common/src/main/java/io/netty/util/ResourceLeakDetector.java lines 65–101
public enum Level {
/**
* Disables resource leak detection.
*/
DISABLED,
/**
* Enables simplistic sampling resource leak detection which reports there is a leak or not,
* at the cost of small overhead (default).
*/
SIMPLE,
/**
* Enables advanced sampling resource leak detection which reports where the leaked object was accessed
* recently at the cost of high overhead.
*/
ADVANCED,
/**
* 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).
*/
PARANOID;
/**
* Returns level based on string value. Accepts also string that represents ordinal number of enum.
*
* @param levelStr - level string : DISABLED, SIMPLE, ADVANCED, PARANOID. Ignores case.
* @return corresponding level or SIMPLE level in case of no match.
*/
static Level parseLevel(String levelStr) {
String trimmedLevelStr = levelStr.trim();
for (Level l : values()) {
if (trimmedLevelStr.equalsIgnoreCase(l.name()) || trimmedLevelStr.equals(String.valueOf(l.ordinal()))) {
return l;
}
}
return DEFAULT_LEVEL;
}
}
Source
Frequently Asked Questions
What is the Level type?
Level is a type/interface in the netty codebase, defined in common/src/main/java/io/netty/util/ResourceLeakDetector.java.
Where is Level defined?
Level is defined in common/src/main/java/io/netty/util/ResourceLeakDetector.java at line 65.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free