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: [EMAIL PROTECTED]


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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to