Re: [pool] preparePool that only registers key, doesn't create new object

2017-02-09 Thread Mark Thomas
On 06/02/17 10:55, Mark Thomas wrote: On 05/02/17 22:21, Gary Gregory wrote: Anyone care to opine? I think there is a bug in ensureMinIdle. If the objectDeque is null, it needs to obtain a reference to the objectDeque once created in the for loop. Otherwise the call from preparePool will

[pool] preparePool that only registers key, doesn't create new object

2017-01-20 Thread Martin Klepsch
Hey, With a KeyedObjectPool I can use `setMinIdlePerKey` & `preparePool` to "bootstrap" an object pool. Now `preparePool` creates new objects synchronously and the evictor thread doesn't seem to ensure min idle objects if there are none yet (since it can't know the keys I guess). Because of