You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2002/09/20 03:16:53 UTC
DO NOT REPLY [Bug 12840] New: -
[PATCH] Factor out syncronized block Evictor code to method
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12840>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12840
[PATCH] Factor out syncronized block Evictor code to method
Summary: [PATCH] Factor out syncronized block Evictor code to
method
Product: Commons
Version: Nightly Builds
Platform: Other
OS/Version: Other
Status: NEW
Severity: Enhancement
Priority: Other
Component: Pool
AssignedTo: commons-dev@jakarta.apache.org
ReportedBy: rleland@apache.org
I have a scheduling program that has a definate end of
cycle, and I would like to be able to manually shrink the
pool to its min size.
So for the GenericObjectPool.Evictor
Factor out line 907 - 965 (CVS Sept 19th) of GenericObjectPool
sycronized block.
try {
synchronized(GenericObjectPool.this) {
to a method sycronized doEviction() {}
Then place a facad in GenericObjectPool
that would call the inner classes method.
attaching patch.
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>