public class DefaultResourceLeakDetectorFactory extends ResourceLeakDetectorFactory
| 构造器和说明 |
|---|
DefaultResourceLeakDetectorFactory() |
| 限定符和类型 | 方法和说明 |
|---|---|
<T> ResourceLeakDetector<T> |
newResourceLeakDetector(Class<T> resource,
int samplingInterval)
Returns a new instance of a
ResourceLeakDetector with the given resource class. |
instance, newResourceLeakDetector, setResourceLeakDetectorFactorypublic <T> ResourceLeakDetector<T> newResourceLeakDetector(Class<T> resource, int samplingInterval)
ResourceLeakDetectorFactoryResourceLeakDetector with the given resource class.newResourceLeakDetector 在类中 ResourceLeakDetectorFactoryT - the type of the resource classresource - the resource class used to initialize the ResourceLeakDetectorsamplingInterval - the interval on which sampling takes placeResourceLeakDetectorCopyright © 2021. All rights reserved.