Skip to content

ConnectionPool properties are constant #429

@skelantros

Description

@skelantros

Hello, I need some metrics to monitor connection pool state in production.
In ConnectionPool class there are inUseConnectionCount, futuresWaitingForConnectionCount and idleConnectionsCount. The problem is that they are constant variables, not functions, making them virtually useless to observe connection pool state as they are initialized once when making an instance of ConnectionPool.

https://github.com/jasync-sql/jasync-sql/blob/master/db-async-common/src/main/java/com/github/jasync/sql/db/pool/ConnectionPool.kt#L117

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions