commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Serge Knystautas <>
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.

Serge Knystautas
Lokitech >> software . strategy . design >>
p. 301.656.5501

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

View raw message