You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Sebb (Created) (JIRA)" <ji...@apache.org> on 2011/12/15 11:10:30 UTC

[jira] [Created] (POOL-204) GKOP encapsulate poolMap/poolKeyList to ensure invariants?

GKOP encapsulate poolMap/poolKeyList to ensure invariants?
----------------------------------------------------------

                 Key: POOL-204
                 URL: https://issues.apache.org/jira/browse/POOL-204
             Project: Commons Pool
          Issue Type: Improvement
    Affects Versions: 2.0
            Reporter: Sebb
            Priority: Minor


In GKOP, poolMap and poolKeyList must be kept in step otherwise "bad things will happen!".

Might be worth considering encapsulating the data structures in a private class that ensures this.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (POOL-204) GKOP encapsulate poolMap/poolKeyList to ensure invariants?

Posted by "Mark Thomas (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/POOL-204?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13171658#comment-13171658 ] 

Mark Thomas commented on POOL-204:
----------------------------------

The data structures are already encapsulated within GKOP. I don't see that adding a further layer of encapsulation will help. I think some comments in the code would be sufficient.
                
> GKOP encapsulate poolMap/poolKeyList to ensure invariants?
> ----------------------------------------------------------
>
>                 Key: POOL-204
>                 URL: https://issues.apache.org/jira/browse/POOL-204
>             Project: Commons Pool
>          Issue Type: Improvement
>    Affects Versions: 2.0
>            Reporter: Sebb
>            Priority: Minor
>
> In GKOP, poolMap and poolKeyList must be kept in step otherwise "bad things will happen!".
> Might be worth considering encapsulating the data structures in a private class that ensures this.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (POOL-204) GKOP encapsulate poolMap/poolKeyList to ensure invariants?

Posted by "Mark Thomas (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/POOL-204?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mark Thomas resolved POOL-204.
------------------------------

    Resolution: Fixed

Comments added.
                
> GKOP encapsulate poolMap/poolKeyList to ensure invariants?
> ----------------------------------------------------------
>
>                 Key: POOL-204
>                 URL: https://issues.apache.org/jira/browse/POOL-204
>             Project: Commons Pool
>          Issue Type: Improvement
>    Affects Versions: 2.0
>            Reporter: Sebb
>            Priority: Minor
>
> In GKOP, poolMap and poolKeyList must be kept in step otherwise "bad things will happen!".
> Might be worth considering encapsulating the data structures in a private class that ensures this.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (POOL-204) GKOP encapsulate poolMap/poolKeyList to ensure invariants?

Posted by "Mark Thomas (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/POOL-204?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13171656#comment-13171656 ] 

Mark Thomas commented on POOL-204:
----------------------------------

Scratch that. The list is required to maintain eviction order.
                
> GKOP encapsulate poolMap/poolKeyList to ensure invariants?
> ----------------------------------------------------------
>
>                 Key: POOL-204
>                 URL: https://issues.apache.org/jira/browse/POOL-204
>             Project: Commons Pool
>          Issue Type: Improvement
>    Affects Versions: 2.0
>            Reporter: Sebb
>            Priority: Minor
>
> In GKOP, poolMap and poolKeyList must be kept in step otherwise "bad things will happen!".
> Might be worth considering encapsulating the data structures in a private class that ensures this.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (POOL-204) GKOP encapsulate poolMap/poolKeyList to ensure invariants?

Posted by "Mark Thomas (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/POOL-204?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13171655#comment-13171655 ] 

Mark Thomas commented on POOL-204:
----------------------------------

Hmm. I'm currently wondering if I can just remove poolKeyList...
                
> GKOP encapsulate poolMap/poolKeyList to ensure invariants?
> ----------------------------------------------------------
>
>                 Key: POOL-204
>                 URL: https://issues.apache.org/jira/browse/POOL-204
>             Project: Commons Pool
>          Issue Type: Improvement
>    Affects Versions: 2.0
>            Reporter: Sebb
>            Priority: Minor
>
> In GKOP, poolMap and poolKeyList must be kept in step otherwise "bad things will happen!".
> Might be worth considering encapsulating the data structures in a private class that ensures this.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira