类 AbstractDataSourcePoolMetadata<T extends DataSource>

    • 构造器详细资料

      • AbstractDataSourcePoolMetadata

        protected AbstractDataSourcePoolMetadata​(T dataSource)
        Create an instance with the data source to use.
        参数:
        dataSource - the data source
    • 方法详细资料

      • getUsage

        public Float getUsage()
        从接口复制的说明: DataSourcePoolMetadata
        Return the usage of the pool as value between 0 and 1 (or -1 if the pool is not limited).
        • 1 means that the maximum number of connections have been allocated
        • 0 means that no connection is currently active
        • -1 means there is not limit to the number of connections that can be allocated
        This may also return null if the data source does not provide the necessary information to compute the poll usage.
        指定者:
        getUsage 在接口中 DataSourcePoolMetadata
        返回:
        the usage value or null