Package org.apache.commons.pool2.impl
Class EvictionTimer.PrivilegedNewEvictionTimer
- java.lang.Object
-
- org.apache.commons.pool2.impl.EvictionTimer.PrivilegedNewEvictionTimer
-
- All Implemented Interfaces:
java.security.PrivilegedAction<java.util.Timer>
- Enclosing class:
- EvictionTimer
private static class EvictionTimer.PrivilegedNewEvictionTimer extends java.lang.Object implements java.security.PrivilegedAction<java.util.Timer>
PrivilegedAction
used to create a new Timer. Creating the timer with a privileged action means the associated Thread does not inherit the current access control context. In a container environment, inheriting the current access control context is likely to result in retaining a reference to the thread context class loader which would be a memory leak.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
PrivilegedNewEvictionTimer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Timer
run()
-