类 CommonsDbcpDataSourcePoolMetadata
- java.lang.Object
- org.springframework.boot.autoconfigure.jdbc.metadata.AbstractDataSourcePoolMetadata<org.apache.commons.dbcp.BasicDataSource>
- org.springframework.boot.autoconfigure.jdbc.metadata.CommonsDbcpDataSourcePoolMetadata
- 所有已实现的接口:
DataSourcePoolMetadata
@Deprecated public class CommonsDbcpDataSourcePoolMetadata extends AbstractDataSourcePoolMetadata<org.apache.commons.dbcp.BasicDataSource>
已过时。DataSourcePoolMetadata
for an Apache Commons DBCPDataSource
.- 从以下版本开始:
- 1.2.0
构造器概要
构造器 构造器 说明 CommonsDbcpDataSourcePoolMetadata(org.apache.commons.dbcp.BasicDataSource dataSource)
已过时。
方法概要
所有方法 实例方法 具体方法 已过时的方法 修饰符和类型 方法 说明 Integer
getActive()
已过时。Return the current number of active connections that have been allocated from the data source ornull
if that information is not available.Integer
getMax()
已过时。Return the maximum number of active connections that can be allocated at the same time or-1
if there is no limit.Integer
getMin()
已过时。Return the minimum number of idle connections in the pool ornull
if that information is not available.String
getValidationQuery()
已过时。Return the query to use to validate that a connection is valid ornull
if that information is not available.从类继承的方法 org.springframework.boot.autoconfigure.jdbc.metadata.AbstractDataSourcePoolMetadata
getDataSource, getUsage
构造器详细资料
CommonsDbcpDataSourcePoolMetadata
public CommonsDbcpDataSourcePoolMetadata(org.apache.commons.dbcp.BasicDataSource dataSource)
已过时。
方法详细资料
getActive
public Integer getActive()
已过时。从接口复制的说明:DataSourcePoolMetadata
Return the current number of active connections that have been allocated from the data source ornull
if that information is not available.- 返回:
- the number of active connections or
null
getMax
public Integer getMax()
已过时。从接口复制的说明: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.- 返回:
- the maximum number of active connections or
null
getMin
public Integer getMin()
已过时。从接口复制的说明:DataSourcePoolMetadata
Return the minimum number of idle connections in the pool ornull
if that information is not available.- 返回:
- the minimum number of active connections or
null
getValidationQuery
public String getValidationQuery()
已过时。从接口复制的说明:DataSourcePoolMetadata
Return the query to use to validate that a connection is valid ornull
if that information is not available.- 返回:
- the validation query or
null