You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gary D. Gregory (Jira)" <ji...@apache.org> on 2025/06/06 12:41:00 UTC

[jira] [Commented] (POOL-423) GenericObjectPool's javadoc

    [ https://issues.apache.org/jira/browse/POOL-423?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17956589#comment-17956589 ] 

Gary D. Gregory commented on POOL-423:
--------------------------------------

[~shengulong] 

Good find! The references to {{_maxActive}} are from 1.x and need to be updated.

 

> GenericObjectPool's javadoc
> ---------------------------
>
>                 Key: POOL-423
>                 URL: https://issues.apache.org/jira/browse/POOL-423
>             Project: Commons Pool
>          Issue Type: Improvement
>    Affects Versions: 2.12.1
>            Reporter: shengulong
>            Priority: Minor
>
> /**
> *
> * <p>All the objects currently associated with this pool in any state. It excludes objects that
> * have been destroyed. The size of \{@link #allObjects} will always be less than or equal to
> * \{@link #_maxActive}. Map keys are pooled objects, values are the PooledObject wrappers used
> * internally by the pool.
> */
> private final ConcurrentHashMap<IdentityWrapper<T>, PooledObject<T>> allObjects =
> new ConcurrentHashMap<>();
> /**
> * <p>The combined count of the currently created objects and those in the process of being
> * created. Under load, it may exceed \{@link #_maxActive} if multiple threads try and
> * create a new object at the same time but \{@link #create()} will ensure that there are never
> * more than \{@link #_maxActive} objects created at any one time.
> */
> private final AtomicLong createCount = new AtomicLong();
>  
>  
> {@link #_maxActive}  is invalid



--
This message was sent by Atlassian Jira
(v8.20.10#820010)