commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henrik Vendelbo" <>
Subject [pool] Keyey pool usage
Date Mon, 03 Nov 2003 18:09:26 GMT
Browsing the mailing-list archive made me wonder if the pools are inteded
for the use I seek.

I have information stored in a database, and want to retrieve it as rarely
as possible.

When I need a piece of information I want to borrow it from the pool and
return it when I am done with it.

I may borrow the same object multiple times and obtain the same object, be
it in parallel or sequentially.

Suppose I do the following :

Object o1 = borrowObject("somename");
Object o2 = borrowObject("somename");
Object o3 = borrowObject("somename");

will the three objects be the same ?

Object o1 = borrowObject("somename");
Object o2 = borrowObject("somename");

will o1 == o2 ?


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

View raw message