类 TomcatDataSourcePoolMetadata
- java.lang.Object
- org.springframework.boot.autoconfigure.jdbc.metadata.AbstractDataSourcePoolMetadata<org.apache.tomcat.jdbc.pool.DataSource>
- org.springframework.boot.autoconfigure.jdbc.metadata.TomcatDataSourcePoolMetadata
- 所有已实现的接口:
DataSourcePoolMetadata
public class TomcatDataSourcePoolMetadata extends AbstractDataSourcePoolMetadata<org.apache.tomcat.jdbc.pool.DataSource>
DataSourcePoolMetadata
for a Tomcat DataSource.
构造器概要
构造器 构造器 说明 TomcatDataSourcePoolMetadata(org.apache.tomcat.jdbc.pool.DataSource 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
构造器详细资料
TomcatDataSourcePoolMetadata
public TomcatDataSourcePoolMetadata(org.apache.tomcat.jdbc.pool.DataSource 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