Re: [pool] Queue-, SoftReference-based object pool

2006-02-16 Thread Javier Kohen
Sandy, El mié, 15-02-2006 a las 22:20 -0500, Sandy McArthur escribió: > It does make sense to back a FIFO pool with a java.util.Queue but the > Queue is a Java 1.5 feature and it will be a while before Java 1.5 is > a Pool requirement. The current version of Pool requires Java 1.3 and > after one

Re: [pool] Queue-, SoftReference-based object pool

2006-02-15 Thread Sandy McArthur
It does make sense to back a FIFO pool with a java.util.Queue but the Queue is a Java 1.5 feature and it will be a while before Java 1.5 is a Pool requirement. The current version of Pool requires Java 1.3 and after one more mostly bug fix release Pool 2.0 will be started which will using Java 1.4

[pool] Queue-, SoftReference-based object pool

2006-02-15 Thread Javier Kohen
Hi, I implemented an ObjectPool based on the SoftReferenceObjectPool in commons pool. My implementation takes a java.util.queue and has no internal synchronization, leaving that up to the queue implementation. This is useful, for instance, in concurrent applications that share the pool among threa