commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roytman, Alex" <>
Subject [Pool] Re: Sharing eviction threads
Date Fri, 01 Nov 2002 21:00:39 GMT
To break jdk1.3 dependency problem we can introduce:
class TimerService extends Timer implements ObjectFactory
class ReflectedTimerTask extends TimerTask implements ObjectFactory

ReflectedTimerTask will have three atributes
1. timerServiceJndiName
2. taskTargetJndiName (pool)
3. methodName - no arg method to invoke via reflection

this will allow to avoid directly introducing java.util.Timer to pool classes

From: Rodney Waldhoff 
Subject: [Pool] Re: Sharing eviction threads 
Date: Thu, 31 Oct 2002 10:00:33 -0800 


One problem I see is that the java.util.Timer class was added in JDK 1.3.
Pool currently supports JDK 1.2 or higher.  Making Evictor extend
TimerTask would make it impossible to support 1.2 anymore.

Could we factor this such that this is an extension to pool (perhaps with
EvictorTask wrapping Evictor, rather than forcing Evictor to extends
TimerTask directly) than can be conditionally compiled in form or another?

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message