/** * Returns a new instance of a {@link ResourceLeakDetector} with the given resource class. * * @param resource the resource class used to initialize the {@link ResourceLeakDetector} * @param <T> the type of the resource class * @return a new instance of {@link ResourceLeakDetector} */ public final <T> ResourceLeakDetector<T> newResourceLeakDetector(Class<T> resource) { return newResourceLeakDetector(resource, ResourceLeakDetector.SAMPLING_INTERVAL); }
ResourceLeakDetectorFactory.instance().newResourceLeakDetector(ReferenceCountedOpenSslContext.class);
ResourceLeakDetectorFactory.instance().newResourceLeakDetector(ReferenceCountedOpenSslContext.class);
ResourceLeakDetectorFactory.instance().newResourceLeakDetector(ReferenceCountedOpenSslContext.class);
/** * Returns a new instance of a {@link ResourceLeakDetector} with the given resource class. * * @param resource the resource class used to initialize the {@link ResourceLeakDetector} * @param samplingInterval the interval on which sampling takes place * @param <T> the type of the resource class * @return a new instance of {@link ResourceLeakDetector} */ @SuppressWarnings("deprecation") public <T> ResourceLeakDetector<T> newResourceLeakDetector(Class<T> resource, int samplingInterval) { return newResourceLeakDetector(resource, ResourceLeakDetector.SAMPLING_INTERVAL, Long.MAX_VALUE); }
ResourceLeakDetectorFactory.instance().newResourceLeakDetector(ReferenceCountedOpenSslContext.class);
/** * Returns a new instance of a {@link ResourceLeakDetector} with the given resource class. * * @param resource the resource class used to initialize the {@link ResourceLeakDetector} * @param <T> the type of the resource class * @return a new instance of {@link ResourceLeakDetector} */ public final <T> ResourceLeakDetector<T> newResourceLeakDetector(Class<T> resource) { return newResourceLeakDetector(resource, ResourceLeakDetector.SAMPLING_INTERVAL); }
ResourceLeakDetectorFactory.instance().newResourceLeakDetector(ReferenceCountedOpenSslContext.class);
/** * Returns a new instance of a {@link ResourceLeakDetector} with the given resource class. * * @param resource the resource class used to initialize the {@link ResourceLeakDetector} * @param samplingInterval the interval on which sampling takes place * @param <T> the type of the resource class * @return a new instance of {@link ResourceLeakDetector} */ @SuppressWarnings("deprecation") public <T> ResourceLeakDetector<T> newResourceLeakDetector(Class<T> resource, int samplingInterval) { return newResourceLeakDetector(resource, ResourceLeakDetector.SAMPLING_INTERVAL, Long.MAX_VALUE); }
ResourceLeakDetectorFactory.instance().newResourceLeakDetector(ReferenceCountedOpenSslContext.class);
/** * Returns a new instance of a {@link ResourceLeakDetector} with the given resource class. * * @param resource the resource class used to initialize the {@link ResourceLeakDetector} * @param <T> the type of the resource class * @return a new instance of {@link ResourceLeakDetector} */ public final <T> ResourceLeakDetector<T> newResourceLeakDetector(Class<T> resource) { return newResourceLeakDetector(resource, ResourceLeakDetector.DEFAULT_SAMPLING_INTERVAL); }
/** * Returns a new instance of a {@link ResourceLeakDetector} with the given resource class. * * @param resource the resource class used to initialize the {@link ResourceLeakDetector} * @param samplingInterval the interval on which sampling takes place * @param <T> the type of the resource class * @return a new instance of {@link ResourceLeakDetector} */ @SuppressWarnings("deprecation") public <T> ResourceLeakDetector<T> newResourceLeakDetector(Class<T> resource, int samplingInterval) { return newResourceLeakDetector(resource, ResourceLeakDetector.DEFAULT_SAMPLING_INTERVAL, Long.MAX_VALUE); }
/** * Returns a new instance of a {@link ResourceLeakDetector} with the given resource class. * * @param resource the resource class used to initialize the {@link ResourceLeakDetector} * @param <T> the type of the resource class * @return a new instance of {@link ResourceLeakDetector} */ public final <T> ResourceLeakDetector<T> newResourceLeakDetector(Class<T> resource) { return newResourceLeakDetector(resource, ResourceLeakDetector.SAMPLING_INTERVAL); }
/** * Returns a new instance of a {@link ResourceLeakDetector} with the given resource class. * * @param resource the resource class used to initialize the {@link ResourceLeakDetector} * @param samplingInterval the interval on which sampling takes place * @param <T> the type of the resource class * @return a new instance of {@link ResourceLeakDetector} */ @SuppressWarnings("deprecation") public <T> ResourceLeakDetector<T> newResourceLeakDetector(Class<T> resource, int samplingInterval) { return newResourceLeakDetector(resource, ResourceLeakDetector.SAMPLING_INTERVAL, Long.MAX_VALUE); }
/** * Returns a new instance of a {@link ResourceLeakDetector} with the given resource class. * * @param resource the resource class used to initialize the {@link ResourceLeakDetector} * @param <T> the type of the resource class * @return a new instance of {@link ResourceLeakDetector} */ public final <T> ResourceLeakDetector<T> newResourceLeakDetector(Class<T> resource) { return newResourceLeakDetector(resource, ResourceLeakDetector.DEFAULT_SAMPLING_INTERVAL); }
/** * Returns a new instance of a {@link ResourceLeakDetector} with the given resource class. * * @param resource the resource class used to initialize the {@link ResourceLeakDetector} * @param <T> the type of the resource class * @return a new instance of {@link ResourceLeakDetector} */ public final <T> ResourceLeakDetector<T> newResourceLeakDetector(Class<T> resource) { return newResourceLeakDetector(resource, ResourceLeakDetector.DEFAULT_SAMPLING_INTERVAL); }
/** * Returns a new instance of a {@link ResourceLeakDetector} with the given resource class. * * @param resource the resource class used to initialize the {@link ResourceLeakDetector} * @param samplingInterval the interval on which sampling takes place * @param <T> the type of the resource class * @return a new instance of {@link ResourceLeakDetector} */ @SuppressWarnings("deprecation") public <T> ResourceLeakDetector<T> newResourceLeakDetector(Class<T> resource, int samplingInterval) { return newResourceLeakDetector(resource, ResourceLeakDetector.DEFAULT_SAMPLING_INTERVAL, Long.MAX_VALUE); }
/** * Returns a new instance of a {@link ResourceLeakDetector} with the given resource class. * * @param resource the resource class used to initialize the {@link ResourceLeakDetector} * @param samplingInterval the interval on which sampling takes place * @param <T> the type of the resource class * @return a new instance of {@link ResourceLeakDetector} */ @SuppressWarnings("deprecation") public <T> ResourceLeakDetector<T> newResourceLeakDetector(Class<T> resource, int samplingInterval) { return newResourceLeakDetector(resource, ResourceLeakDetector.DEFAULT_SAMPLING_INTERVAL, Long.MAX_VALUE); }
/** * Returns a new instance of a {@link ResourceLeakDetector} with the given resource class. * * @param resource the resource class used to initialize the {@link ResourceLeakDetector} * @param <T> the type of the resource class * @return a new instance of {@link ResourceLeakDetector} */ public final <T> ResourceLeakDetector<T> newResourceLeakDetector(Class<T> resource) { return newResourceLeakDetector(resource, ResourceLeakDetector.DEFAULT_SAMPLING_INTERVAL); }
/** * Returns a new instance of a {@link ResourceLeakDetector} with the given resource class. * * @param resource the resource class used to initialize the {@link ResourceLeakDetector} * @param samplingInterval the interval on which sampling takes place * @param <T> the type of the resource class * @return a new instance of {@link ResourceLeakDetector} */ @SuppressWarnings("deprecation") public <T> ResourceLeakDetector<T> newResourceLeakDetector(Class<T> resource, int samplingInterval) { return newResourceLeakDetector(resource, ResourceLeakDetector.DEFAULT_SAMPLING_INTERVAL, Long.MAX_VALUE); }