You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "Roytman, Alex" <Ro...@peacetech.com> on 2002/11/01 22:00:39 UTC

[Pool] Re: Sharing eviction threads

Rodney,
 
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:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: [Pool] Re: Sharing eviction threads

Posted by Rodney Waldhoff <rw...@apache.org>.
Sounds good to me.  Do you have a patch?



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>