ResourceLeakDetector
s as needed
Modifier and Type | Class and Description |
---|---|
private static class | ResourceLeakDetectorFactory.
Default implementation that loads custom leak detector via system property |
Modifier and Type | Field and Description |
---|---|
private static volatile ResourceLeakDetectorFactory | |
private static final InternalLogger |
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
public static ResourceLeakDetectorFactory | Returns: the currentResourceLeakDetectorFactory Get the singleton instance of this factory class. |
public final < the type of the resource class T> ResourceLeakDetector | Returns: a new instance ofResourceLeakDetector the resource class used to initialize the resource)ResourceLeakDetector Returns a new instance of a |
public abstract < the type of the resource class T> ResourceLeakDetector | Returns: a new instance ofResourceLeakDetector the resource class used to initialize the resource, int ResourceLeakDetector the interval on which sampling takes place samplingInterval, long This is deprecated and will be ignored. maxActive)
Deprecated
Use
newResourceLeakDetector(Class, int) instead.
|
public < the type of the resource class T> ResourceLeakDetector | Returns: a new instance ofResourceLeakDetector the resource class used to initialize the resource, int ResourceLeakDetector the interval on which sampling takes place samplingInterval)Returns a new instance of a |
public static void | setResourceLeakDetectorFactory(ResourceLeakDetectorFactory
the instance that will become the current factory)ResourceLeakDetectorFactory 's singletonSet the factory's singleton instance. |
factoryInstance | back to summary |
---|---|
private static volatile ResourceLeakDetectorFactory factoryInstance |
logger | back to summary |
---|---|
private static final InternalLogger logger |
ResourceLeakDetectorFactory | back to summary |
---|---|
public ResourceLeakDetectorFactory() |
instance | back to summary |
---|---|
public static ResourceLeakDetectorFactory instance() Get the singleton instance of this factory class.
|
newResourceLeakDetector | back to summary |
---|---|
public final <T> ResourceLeakDetector Returns a new instance of a
|
newResourceLeakDetector | back to summary |
---|---|
public abstract <T> ResourceLeakDetector Deprecated Use
Returns a new instance of a
|
newResourceLeakDetector | back to summary |
---|---|
public <T> ResourceLeakDetector Returns a new instance of a
|
setResourceLeakDetectorFactory | back to summary |
---|---|
public static void setResourceLeakDetectorFactory(ResourceLeakDetectorFactory factory) Set the factory's singleton instance. This has to be called before the static initializer of the
|
Modifier and Type | Field and Description |
---|---|
private final Constructor | |
private final Constructor |
Access | Constructor and Description |
---|---|
pack-priv |
Modifier and Type | Method and Description |
---|---|
private static Constructor | |
public <T> ResourceLeakDetector | newResourceLeakDetector(Class<T>
the resource class used to initialize the resource, int ResourceLeakDetector the interval on which sampling takes place samplingInterval, long This is deprecated and will be ignored. maxActive)Implements abstract io. |
public <T> ResourceLeakDetector | newResourceLeakDetector(Class<T>
the resource class used to initialize the resource, int ResourceLeakDetector the interval on which sampling takes place samplingInterval)Overrides io. ResourceLeakDetector with the given resource class.
|
private static Constructor |
customClassConstructor | back to summary |
---|---|
private final Constructor<?> customClassConstructor |
obsoleteCustomClassConstructor | back to summary |
---|---|
private final Constructor<?> obsoleteCustomClassConstructor |
DefaultResourceLeakDetectorFactory | back to summary |
---|---|
pack-priv DefaultResourceLeakDetectorFactory() |
customClassConstructor | back to summary |
---|---|
private static Constructor |
newResourceLeakDetector | back to summary |
---|---|
public <T> ResourceLeakDetector Implements abstract io.
|
newResourceLeakDetector | back to summary |
---|---|
public <T> ResourceLeakDetector Overrides io. Doc from io. Returns a new instance of a
|
obsoleteCustomClassConstructor | back to summary |
---|---|
private static Constructor |