org.hd.d.pg2k.webSvr.exhibit
Class AbstractFilterBean.ExpiryTask

java.lang.Object
  extended by java.util.TimerTask
      extended by org.hd.d.pg2k.webSvr.exhibit.AbstractFilterBean.ExpiryTask
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
AbstractFilterBean

private static final class AbstractFilterBean.ExpiryTask
extends java.util.TimerTask

Task to actively expire a filter and release its memory. Only retains a weak reference to the filter bean so as not to prevent the bean being GCed.


Field Summary
private  java.lang.ref.WeakReference<AbstractFilterBean> beanWR
          Weak ref to the bean; never null though the referent may be.
 
Constructor Summary
AbstractFilterBean.ExpiryTask(AbstractFilterBean afb)
           
 
Method Summary
 void run()
           
 
Methods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

beanWR

private final java.lang.ref.WeakReference<AbstractFilterBean> beanWR
Weak ref to the bean; never null though the referent may be.

Constructor Detail

AbstractFilterBean.ExpiryTask

AbstractFilterBean.ExpiryTask(AbstractFilterBean afb)
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable
Specified by:
run in class java.util.TimerTask

DHD Multimedia Gallery V1.53.0

Copyright (c) 1996-2009, Damon Hart-Davis. All rights reserved.