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 Details

  • Constructor Details

    • WeakRunner

      private WeakRunner(WeakReference<R> ref)
      Constructs a new instance to track the given reference.
      Parameters:
      ref - the reference to track.
  • Method Details

    • run

      public void run()
      Specified by:
      run in interface Runnable