I am confused about the expected behavior with a GenericKeyedObjectPool
with minIdle=1, maxIdle=1, and a running evictor.

Currently when the evictor thread finds an object for a particular key
where validateObject returns false or activateObject returns an exception,
the object is thrown out of the pool but a new object does not seem to be
made with makeObject until someone specifically calls borrowObject.
 However, I thought that if minIdle=1 then if an object is evicted, another
would be created by the evictor to take it's place.

Seemingly, according to below, after eviction new objects would be created:
http://docs.geotools.org/stable/userguide/advanced/pool.html

Is there a workaround to allow one object in the pool for each key and to
have the evictor thread create a new object at the time it invalidates the
existing object?

Thanks,
Jason

Reply via email to