|
Apache Tomcat 7.0.22 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.catalina.core.ThreadLocalLeakPreventionListener
public class ThreadLocalLeakPreventionListener
A LifecycleListener
that triggers the renewal of threads in Executor
pools when a Context
is being stopped to avoid thread-local related
memory leaks.
Note : active threads will be renewed one by one when they come back to the
pool after executing their task, see
ThreadPoolExecutor
.afterExecute().
Field Summary | |
---|---|
protected static StringManager |
sm
The string manager for this package. |
Constructor Summary | |
---|---|
ThreadLocalLeakPreventionListener()
|
Method Summary | |
---|---|
void |
containerEvent(ContainerEvent event)
Acknowledge the occurrence of the specified event. |
void |
lifecycleEvent(LifecycleEvent event)
Listens for LifecycleEvent for the start of the Server to
initialize itself and then for after_stop events of each Context . |
protected void |
processContainerAddChild(Container parent,
Container child)
|
protected void |
processContainerRemoveChild(Container parent,
Container child)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final StringManager sm
Constructor Detail |
---|
public ThreadLocalLeakPreventionListener()
Method Detail |
---|
public void lifecycleEvent(LifecycleEvent event)
LifecycleEvent
for the start of the Server
to
initialize itself and then for after_stop events of each Context
.
lifecycleEvent
in interface LifecycleListener
event
- LifecycleEvent that has occurredpublic void containerEvent(ContainerEvent event)
ContainerListener
containerEvent
in interface ContainerListener
event
- ContainerEvent that has occurredprotected void processContainerAddChild(Container parent, Container child)
protected void processContainerRemoveChild(Container parent, Container child)
|
Apache Tomcat 7.0.22 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |