public abstract class WeakTimerTask<T>
extends java.util.TimerTask
IMPORTANT! Never use this class as base for an inner or anonymous class. This will create an implicit strong reference to the wrapping partner, so it won't be disposed until the timer task is cancelled.
Modifier and Type | Field and Description |
---|---|
protected java.lang.ref.WeakReference<T> |
partnerRef |
Constructor and Description |
---|
WeakTimerTask(T partner) |