类 HikariDataSourcePoolMetadata
- java.lang.Object
- org.springframework.boot.autoconfigure.jdbc.metadata.AbstractDataSourcePoolMetadata<com.zaxxer.hikari.HikariDataSource>
- org.springframework.boot.autoconfigure.jdbc.metadata.HikariDataSourcePoolMetadata
- 所有已实现的接口:
DataSourcePoolMetadata
public class HikariDataSourcePoolMetadata extends AbstractDataSourcePoolMetadata<com.zaxxer.hikari.HikariDataSource>
DataSourcePoolMetadatafor a HikariDataSource.- 从以下版本开始:
- 1.2.0
构造器概要
构造器 构造器 说明 HikariDataSourcePoolMetadata(com.zaxxer.hikari.HikariDataSource dataSource)
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 IntegergetActive()Return the current number of active connections that have been allocated from the data source ornullif that information is not available.IntegergetMax()Return the maximum number of active connections that can be allocated at the same time or-1if there is no limit.IntegergetMin()Return the minimum number of idle connections in the pool ornullif that information is not available.StringgetValidationQuery()Return the query to use to validate that a connection is valid ornullif that information is not available.从类继承的方法 org.springframework.boot.autoconfigure.jdbc.metadata.AbstractDataSourcePoolMetadata
getDataSource, getUsage
构造器详细资料
HikariDataSourcePoolMetadata
public HikariDataSourcePoolMetadata(com.zaxxer.hikari.HikariDataSource dataSource)
方法详细资料
getActive
public Integer getActive()
从接口复制的说明:DataSourcePoolMetadataReturn the current number of active connections that have been allocated from the data source ornullif that information is not available.- 返回:
- the number of active connections or
null
getMax
public Integer getMax()
从接口复制的说明:DataSourcePoolMetadataReturn the maximum number of active connections that can be allocated at the same time or-1if there is no limit. Can also returnnullif that information is not available.- 返回:
- the maximum number of active connections or
null
getMin
public Integer getMin()
从接口复制的说明:DataSourcePoolMetadataReturn the minimum number of idle connections in the pool ornullif that information is not available.- 返回:
- the minimum number of active connections or
null
getValidationQuery
public String getValidationQuery()
从接口复制的说明:DataSourcePoolMetadataReturn the query to use to validate that a connection is valid ornullif that information is not available.- 返回:
- the validation query or
null