Re: [pool] Way to destroy all the objects in a pool

2012-01-20 Thread Sandeep More
On Jan 20, 2012, at 2:48 PM, Mark Thomas wrote: > On 20/01/2012 20:19, Gary Gregory wrote: >> On Fri, Jan 20, 2012 at 1:59 PM, Sandeep More wrote: >> >>> >>> On Jan 20, 2012, at 12:43 PM, Gary Gregory wrote: >>> On Jan 20, 2012, at 13:29, Sandeep More wrote: > Thanks Gary,

Re: [pool] Way to destroy all the objects in a pool

2012-01-20 Thread Mark Thomas
On 20/01/2012 20:19, Gary Gregory wrote: > On Fri, Jan 20, 2012 at 1:59 PM, Sandeep More wrote: > >> >> On Jan 20, 2012, at 12:43 PM, Gary Gregory wrote: >> >>> On Jan 20, 2012, at 13:29, Sandeep More wrote: >>> Thanks Gary, Sorry for not being clear with my question. You are right, c

Re: [pool] Way to destroy all the objects in a pool

2012-01-20 Thread Gary Gregory
On Fri, Jan 20, 2012 at 1:59 PM, Sandeep More wrote: > > On Jan 20, 2012, at 12:43 PM, Gary Gregory wrote: > > > On Jan 20, 2012, at 13:29, Sandeep More wrote: > > > >> Thanks Gary, > >> Sorry for not being clear with my question. You are right, clear() > method > >> calls the destroyObject() m

Re: [pool] Way to destroy all the objects in a pool

2012-01-20 Thread Sandeep More
On Jan 20, 2012, at 12:43 PM, Gary Gregory wrote: > On Jan 20, 2012, at 13:29, Sandeep More wrote: > >> Thanks Gary, >> Sorry for not being clear with my question. You are right, clear() method >> calls the destroyObject() method but only for the objects sitting idle in >> the pool. >> >> Wha

Re: [pool] Way to destroy all the objects in a pool

2012-01-20 Thread Gary Gregory
On Jan 20, 2012, at 13:29, Sandeep More wrote: > Thanks Gary, > Sorry for not being clear with my question. You are right, clear() method > calls the destroyObject() method but only for the objects sitting idle in > the pool. > > What I want is a way to call destroyObject() method on all the obj

Re: [pool] Way to destroy all the objects in a pool

2012-01-20 Thread Sandeep More
Thanks Gary, Sorry for not being clear with my question. You are right, clear() method calls the destroyObject() method but only for the objects sitting idle in the pool. What I want is a way to call destroyObject() method on all the objects in the pool (including the active abjects). This might

Re: [pool] Way to destroy all the objects in a pool

2012-01-20 Thread Gary Gregory
On Thu, Jan 19, 2012 at 8:21 PM, Sandeep More wrote: > Hello, > I was wondering whether there is a method which one would call to destroy > all the objects in a pool. > > To be specific, I am using ‘GenericObjectPool’ to create a pool consisting > of object ‘MyObject’ (implements PoolableObjectFa