commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Rosenstark" <david.rosenst...@corp.idt.net>
Subject Re: Pool: GenericObjectPool evict
Date Sat, 24 Jul 2004 18:13:58 GMT
I can submit the fix, but am a bit new to this. send it to the list?
What we did was add a check in evict that the min number has not been
violated.
----- Original Message -----
From: "Dirk Verbeeck" <dirk.verbeeck@pandora.be>
To: "Jakarta Commons Users List" <commons-user@jakarta.apache.org>
Sent: Thursday, July 22, 2004 9:25 PM
Subject: Re: Pool: GenericObjectPool evict


> The feature you describe is currently not available.
> The evic thread currently has currently 3 functions:
> - remove invalid objects (failing validation test)
> - remove old objects (to prevent timeouts)
> - ensure minimum capacity
>
> You ask for something new. Slowly reduce the number of objects until
> the minimum is reached. This can be usefull in some cases, I imagine...
>
> A note on the pool wiki or a bugzilla enhancement issue will make sure
> we remember this. A patch will help even more ;-)
>
> -- Dirk
>
> David Rosenstark wrote:
>
> > We have a question about the implementation of the genericobjectpool.
> > How can we configure the pool to allows us to grow beyond the min number
> > defined and only remove down to the min number and not past when idle?
The
> > code of evict wipes out all the objects and creates new objects (up to
the
> > min defined) when they have been idle as opposed to just destroying all
the
> > objects above the minimum.
> >
> > Thanks,
> > David
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>
>


---------------------------------------------------------------------
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