public abstract class WeakTimerTask<T> extends 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 WeakReference<T> |
partnerRef |
Constructor and Description |
---|
WeakTimerTask(T partner) |
protected WeakReference<T> partnerRef
public WeakTimerTask(T partner)
Copyright © 2012-2017 European Middleware Initiative. All Rights Reserved.