Class CommonsDbcpDataSourcePoolMetadata
- java.lang.Object
- org.springframework.boot.autoconfigure.jdbc.metadata.AbstractDataSourcePoolMetadata<org.apache.commons.dbcp.BasicDataSource>
- org.springframework.boot.autoconfigure.jdbc.metadata.CommonsDbcpDataSourcePoolMetadata
- All Implemented Interfaces:
DataSourcePoolMetadata
@Deprecated public class CommonsDbcpDataSourcePoolMetadata extends AbstractDataSourcePoolMetadata<org.apache.commons.dbcp.BasicDataSource>
Deprecated.DataSourcePoolMetadata
for an Apache Commons DBCPDataSource
.- Since:
- 1.2.0
Constructor Summary
Constructors Constructor Description CommonsDbcpDataSourcePoolMetadata(org.apache.commons.dbcp.BasicDataSource dataSource)
Deprecated.
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Integer
getActive()
Deprecated.Return the current number of active connections that have been allocated from the data source ornull
if that information is not available.Integer
getMax()
Deprecated.Return the maximum number of active connections that can be allocated at the same time or-1
if there is no limit.Integer
getMin()
Deprecated.Return the minimum number of idle connections in the pool ornull
if that information is not available.String
getValidationQuery()
Deprecated.Return the query to use to validate that a connection is valid ornull
if that information is not available.Methods inherited from class org.springframework.boot.autoconfigure.jdbc.metadata.AbstractDataSourcePoolMetadata
getDataSource, getUsage
Constructor Detail
CommonsDbcpDataSourcePoolMetadata
public CommonsDbcpDataSourcePoolMetadata(org.apache.commons.dbcp.BasicDataSource dataSource)
Deprecated.
Method Detail
getActive
public Integer getActive()
Deprecated.Description copied from interface:DataSourcePoolMetadata
Return the current number of active connections that have been allocated from the data source ornull
if that information is not available.- Returns:
- the number of active connections or
null
getMax
public Integer getMax()
Deprecated.Description copied from interface:DataSourcePoolMetadata
Return the maximum number of active connections that can be allocated at the same time or-1
if there is no limit. Can also returnnull
if that information is not available.- Returns:
- the maximum number of active connections or
null
getMin
public Integer getMin()
Deprecated.Description copied from interface:DataSourcePoolMetadata
Return the minimum number of idle connections in the pool ornull
if that information is not available.- Returns:
- the minimum number of active connections or
null
getValidationQuery
public String getValidationQuery()
Deprecated.Description copied from interface:DataSourcePoolMetadata
Return the query to use to validate that a connection is valid ornull
if that information is not available.- Returns:
- the validation query or
null