commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 12840] New: - [PATCH] Factor out syncronized block Evictor code to method
Date Fri, 20 Sep 2002 01:16:53 GMT
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:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message