T - the data source typepublic abstract class AbstractDataSourcePoolMetadata<T extends DataSource> extends Object implements DataSourcePoolMetadata
DataSourcePoolMetadata implementation.| Modifier | Constructor and Description | 
|---|---|
| protected  | AbstractDataSourcePoolMetadata(T dataSource)Create an instance with the data source to use. | 
| Modifier and Type | Method and Description | 
|---|---|
| protected T | getDataSource() | 
| Float | getUsage()Return the usage of the pool as value between 0 and 1 (or -1 if the pool is not
 limited). | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetActive, getDefaultAutoCommit, getMax, getMin, getValidationQueryprotected AbstractDataSourcePoolMetadata(T dataSource)
dataSource - the data sourcepublic Float getUsage()
DataSourcePoolMetadatanull if the data source does not provide the necessary
 information to compute the poll usage.getUsage in interface DataSourcePoolMetadatanullprotected final T getDataSource()
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.