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