Package org.apache.commons.pool2.impl
Class EvictionTimer.WeakRunner<R extends java.lang.Runnable>
- java.lang.Object
-
- org.apache.commons.pool2.impl.EvictionTimer.WeakRunner<R>
-
- Type Parameters:
R- The kind of Runnable.
- All Implemented Interfaces:
java.lang.Runnable
- Enclosing class:
- EvictionTimer
private static final class EvictionTimer.WeakRunner<R extends java.lang.Runnable> extends java.lang.Object implements java.lang.RunnableRunnable that runs the referent of a weak reference. When the referent is no no longer reachable, run is no-op.
-
-
Constructor Summary
Constructors Modifier Constructor Description privateWeakRunner(java.lang.ref.WeakReference<R> ref)Constructs a new instance to track the given reference.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidrun()
-