commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Serge Knystautas <ser...@lokitech.com>
Subject Re: Pooling impl that doesn't pool
Date Wed, 18 Feb 2004 20:23:12 GMT
Danny Angus wrote:
> Is there such a trivial pool impl available, or does anybody have clever
> suggestions for how to do this?
> 
> Dunno how clever this is, but I often use two hashes  (table or map) (often
> of vectors) to maintain a keyed pool (or pools where there can be more than
> one instance for each key).
> What I do is move the object from the "available" hash to the "busy" hash
> to provide locking.
> 
> I suspect that you might be able to use a similar strategy.

Sorry, I've lost the context for this thread, but I use and like 
Jakarta's pool impl that does this.

http://jakarta.apache.org/commons/pool/

-- 
Serge Knystautas
President
Lokitech >> software . strategy . design >> http://www.lokitech.com
p. 301.656.5501
e. sergek@lokitech.com

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


Mime
View raw message