Class DriverManagerLeakPreventer
- java.lang.Object
-
- org.eclipse.jetty.util.component.AbstractLifeCycle
-
- org.eclipse.jetty.util.preventers.AbstractLeakPreventer
-
- org.eclipse.jetty.util.preventers.DriverManagerLeakPreventer
-
- All Implemented Interfaces:
LifeCycle
@Deprecated(since="2021-05-27") public class DriverManagerLeakPreventer extends AbstractLeakPreventer
Deprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.DriverManagerLeakPreventer Cause DriverManager.getCallerClassLoader() to be called, which will pin the classloader. Inspired by Tomcat JreMemoryLeakPrevention.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
AbstractLifeCycle.AbstractLifeCycleListener
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
LifeCycle.Listener
-
-
Constructor Summary
Constructors Constructor Description DriverManagerLeakPreventer()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
prevent(ClassLoader loader)
Deprecated.-
Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, setStopTimeout, start, stop, toString
-
-
-
-
Method Detail
-
prevent
public void prevent(ClassLoader loader)
Deprecated.- Specified by:
prevent
in classAbstractLeakPreventer
-
-