Class OracleUcpDataSourcePoolMetadata
java.lang.Object
io.micronaut.jdbc.metadata.AbstractDataSourcePoolMetadata<oracle.ucp.jdbc.PoolDataSource>
io.micronaut.configuration.jdbc.ucp.metadata.OracleUcpDataSourcePoolMetadata
- All Implemented Interfaces:
DataSourcePoolMetadata<oracle.ucp.jdbc.PoolDataSource>
public class OracleUcpDataSourcePoolMetadata
extends AbstractDataSourcePoolMetadata<oracle.ucp.jdbc.PoolDataSource>
DataSourcePoolMetadata for an Oracle UCP PoolDataSource.- Since:
- 7.0.0
- Author:
- Andreas Brenk
-
Constructor Summary
ConstructorsConstructorDescriptionOracleUcpDataSourcePoolMetadata(oracle.ucp.jdbc.PoolDataSource dataSource, oracle.ucp.admin.UniversalConnectionPoolManager connectionPoolManager) Oracle UCP typedDataSourcePoolMetadataobject. -
Method Summary
Modifier and TypeMethodDescription@Nullable IntegerReturn the current number of active connections that have been allocated from the data source ornullif that information is not available.The default auto-commit state of connections created by this pool.@Nullable IntegergetIdle()Return the number of idle connections in the pool.@Nullable IntegergetMax()Return the maximum number of active connections that can be allocated at the same time or-1if there is no limit.@Nullable IntegergetMin()Return the minimum number of idle connections in the pool ornullif that information is not available.@Nullable StringReturn the query to use to validate that a connection is valid ornullif that information is not available.Methods inherited from class AbstractDataSourcePoolMetadata
getDataSource, getUsage
-
Constructor Details
-
OracleUcpDataSourcePoolMetadata
public OracleUcpDataSourcePoolMetadata(oracle.ucp.jdbc.PoolDataSource dataSource, oracle.ucp.admin.UniversalConnectionPoolManager connectionPoolManager) Oracle UCP typedDataSourcePoolMetadataobject.- Parameters:
dataSource- The datasourceconnectionPoolManager- The connection pool manager
-
-
Method Details
-
getIdle
Description copied from interface:DataSourcePoolMetadataReturn the number of idle connections in the pool.- Returns:
- the idle value
-
getActive
Description copied from interface:DataSourcePoolMetadataReturn the current number of active connections that have been allocated from the data source ornullif that information is not available.- Returns:
- the number of active connections or
null
-
getMax
Description copied from interface: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.- Returns:
- the maximum number of active connections or
null
-
getMin
Description copied from interface:DataSourcePoolMetadataReturn the minimum number of idle connections in the pool ornullif that information is not available.- Returns:
- the minimum number of active connections or
null
-
getValidationQuery
Description copied from interface:DataSourcePoolMetadataReturn the query to use to validate that a connection is valid ornullif that information is not available.- Returns:
- the validation query or
null
-
getDefaultAutoCommit
Description copied from interface:DataSourcePoolMetadataThe 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.)- Returns:
- the default auto-commit state or
null
-