-
1. Re: JBAS-2773 - LRUEnterpriseContextCachePolicy should be up
adrian.brock Apr 4, 2006 9:02 AM (in response to dlofthouse)I would think the TimerQueue is what you want?
The TimeoutFactory only fires the event once.
But it doesn't look like the TimerQueue has been used since 2.4.x? -
2. Re: JBAS-2773 - LRUEnterpriseContextCachePolicy should be up
dimitris Apr 4, 2006 10:04 AM (in response to dlofthouse)If we add a "period" to the TimeoutFactory we'd have a good replacement for java.util.Timer. No?
-
3. Re: JBAS-2773 - LRUEnterpriseContextCachePolicy should be up
starksm64 Apr 4, 2006 10:14 AM (in response to dlofthouse)It also needs an ability to inject a thread pool for dispatching and possibly a notion of insufficient dispatching horsepower. See this remoting/jms discussion for where these issues came up:
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=79144 -
4. Re: JBAS-2773 - LRUEnterpriseContextCachePolicy should be up
dlofthouse Apr 19, 2006 4:59 AM (in response to dlofthouse)I have had a look at the remoting discussion, it appears that they did make use of the org.jboss.util.TimerQueue for remoting 1.4.1 but this has now subsequently been dropped in favour of the java.util.Timer for remoting 2.
So I think we are back where we started and no-one is currently using the org.jboss.util.TimerQueue.
Adding the period parameter to the TimeoutFactory doesn't appear to be too difficult although some additional consideration will be required to handle some locking when tasks are rescheduled to also cope if the task is simultaneously cancelled. -
5. Re: JBAS-2773 - LRUEnterpriseContextCachePolicy should be up
starksm64 Apr 25, 2006 1:13 AM (in response to dlofthouse)Make the changes and add the approriate testcases so we can move forward with this.
-
6. Re: JBAS-2773 - LRUEnterpriseContextCachePolicy should be up
dimitris May 4, 2006 1:41 PM (in response to dlofthouse)If the problem is really the uncought runtime exceptions that can kill the timer, I think we should just fix those for now, and introduce the change to TimeoutFactory (support for periodic execution) in the next (4.0.5) release.
-
7. Re: JBAS-2773 - LRUEnterpriseContextCachePolicy should be up
ldsanes Jul 14, 2006 4:25 AM (in response to dlofthouse)"dimitris@jboss.org" wrote:
If the problem is really the uncought runtime exceptions that can kill the timer, I think we should just fix those for now, and introduce the change to TimeoutFactory (support for periodic execution) in the next (4.0.5) release.