public final class ResourceLeakDetector<T> extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ResourceLeakDetector.Level
Represents the level of resource leak detection.
|
Constructor and Description |
---|
ResourceLeakDetector(Class<?> resourceType) |
ResourceLeakDetector(Class<?> resourceType,
int samplingInterval,
long maxActive) |
ResourceLeakDetector(String resourceType) |
ResourceLeakDetector(String resourceType,
int samplingInterval,
long maxActive) |
Modifier and Type | Method and Description |
---|---|
static ResourceLeakDetector.Level |
getLevel()
Returns the current resource leak detection level.
|
ResourceLeak |
open(T obj)
Creates a new
ResourceLeak which is expected to be closed via ResourceLeak.close() when the
related resource is deallocated. |
static void |
setLevel(ResourceLeakDetector.Level level)
Sets the resource leak detection level.
|
public ResourceLeakDetector(Class<?> resourceType)
public ResourceLeakDetector(String resourceType)
public ResourceLeakDetector(Class<?> resourceType, int samplingInterval, long maxActive)
public ResourceLeakDetector(String resourceType, int samplingInterval, long maxActive)
public static void setLevel(ResourceLeakDetector.Level level)
public static ResourceLeakDetector.Level getLevel()
public ResourceLeak open(T obj)
ResourceLeak
which is expected to be closed via ResourceLeak.close()
when the
related resource is deallocated.ResourceLeak
or null
Copyright © 2008–2015 The Netty Project. All rights reserved.