ResourceLeakDetectors 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 currentResourceLeakDetectorFactoryGet the singleton instance of this factory class. |
| public final < the type of the resource class T> ResourceLeakDetector | Returns: a new instance ofResourceLeakDetectorthe resource class used to initialize the resource)ResourceLeakDetectorReturns a new instance of a |
| public abstract < the type of the resource class T> ResourceLeakDetector | Returns: a new instance ofResourceLeakDetectorthe resource class used to initialize the resource, int ResourceLeakDetectorthe 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 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 |
| 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 ResourceLeakDetectorthe interval on which sampling takes place samplingInterval)Implements abstract io. ResourceLeakDetector with the given resource class.
|
| customClassConstructor | back to summary |
|---|---|
| private final Constructor<?> customClassConstructor | |
| DefaultResourceLeakDetectorFactory | back to summary |
|---|---|
| pack-priv DefaultResourceLeakDetectorFactory() | |
| customClassConstructor | back to summary |
|---|---|
| private static Constructor | |
| newResourceLeakDetector | back to summary |
|---|---|
| public <T> ResourceLeakDetector Implements abstract io. Doc from io. Returns a new instance of a
| |