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 38664] New: - [pool] proposed PoolableObjectFactorys JavaDoc changes for 2.0
Date Wed, 15 Feb 2006 21:40:52 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38664>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38664

           Summary: [pool] proposed PoolableObjectFactorys JavaDoc changes
                    for 2.0
           Product: Commons
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: UNCONFIRMED
          Keywords: PatchAvailable
          Severity: enhancement
          Priority: P3
         Component: Pool
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: Sandy@McArthur.org


Attached are the pool 2.0 changes I'd like to see to the PoolableObjectFactory
and the KeyedPoolableObjectFactory interfaces. The noteworthy changes are:

* activateObject is to be invoked on previously idle objects, not object created
with makeObject.

* validateObject is to only be invoked on "active" objects. validateObject will
be called before the pool returns a borrowed object. The pool may call
validateObject when objects are being returned to the pool or by and idle
eviction code.

* no guarantee about the condition of objects passed to destroyObject method.
They could be active, passive, valid, or invalid.

* PoolableObjectFactorys must be thread-safe. The only promise an ObjectPool
makes is that the same instance of an object will not be passed to more than one
method of a PoolableObjectFactorys at a time.


For the last item I think we should provide a synchronization wrapper for
PoolableObjectFactorys much like java.util.Collections has a
synchronizedCollection method.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message