类 OracleUcpDataSourcePoolMetadata
java.lang.Object
org.springframework.boot.jdbc.metadata.AbstractDataSourcePoolMetadata<oracle.ucp.jdbc.PoolDataSource>
org.springframework.boot.jdbc.metadata.OracleUcpDataSourcePoolMetadata
- 所有已实现的接口:
DataSourcePoolMetadata
public class OracleUcpDataSourcePoolMetadata
extends AbstractDataSourcePoolMetadata<oracle.ucp.jdbc.PoolDataSource>
DataSourcePoolMetadata
for an Oracle UCP DataSource
.- 从以下版本开始:
- 2.4.0
- 作者:
- Fabio Grassi
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明Return the current number of active connections that have been allocated from the data source ornull
if that information is not available.The default auto-commit state of connections created by this pool.getIdle()
Return the number of established but idle connections.getMax()
Return the maximum number of active connections that can be allocated at the same time or-1
if there is no limit.getMin()
Return the minimum number of idle connections in the pool ornull
if that information is not available.Return the query to use to validate that a connection is valid ornull
if that information is not available.从类继承的方法 org.springframework.boot.jdbc.metadata.AbstractDataSourcePoolMetadata
getDataSource, getUsage
-
构造器详细资料
-
OracleUcpDataSourcePoolMetadata
public OracleUcpDataSourcePoolMetadata(oracle.ucp.jdbc.PoolDataSource dataSource)
-
-
方法详细资料
-
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
-
getIdle
从接口复制的说明:DataSourcePoolMetadata
Return the number of established but idle connections. Can also returnnull
if that information is not available.- 返回:
- the number of established but idle connections or
null
- 另请参阅:
-
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
从接口复制的说明: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
从接口复制的说明: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
-
getDefaultAutoCommit
从接口复制的说明:DataSourcePoolMetadata
The default auto-commit state of connections created by this pool. If not set (null
), default is JDBC driver default (If set to null then the java.sql.Connection.setAutoCommit(boolean) method will not be called.)- 返回:
- the default auto-commit state or
null
-