commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emanuele Gheradini <>
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
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:
Sent from the Commons - User mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message