commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emanuele Gheradini <ghepardo_1...@hotmail.com>
Subject Re: commons.pool 1.5.2 PoolUtils.synchronizedPool question
Date Fri, 11 Sep 2009 08:50:06 GMT


Mark Thomas wrote:
> 
> 
> Look at the JavaDocs.
> 
> Mark
> 
>From JavaDocs:
"
public static KeyedObjectPool synchronizedPool(KeyedObjectPool keyedPool)

Returns a synchronized (thread-safe) KeyedObjectPool backed by the specified
KeyedObjectPool.
Note: This should not be used on pool implementations that already provide
proper synchronization such as the pools provided in the Commons Pool
library. Wrapping a pool that waits for poolable objects to be returned
before allowing another one to be borrowed with another layer of
synchronization will cause liveliness issues or a deadlock.
"

Sorry for my dumb question. Thanks for replying.

-- 
View this message in context: http://www.nabble.com/commons.pool-1.5.2-PoolUtils.synchronizedPool-question-tp25397061p25397315.html
Sent from the Commons - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Mime
View raw message