public class TomcatDataSourcePoolMetadata extends AbstractDataSourcePoolMetadata<DataSource>
DataSourcePoolMetadata for a Tomcat DataSource.| Constructor and Description |
|---|
TomcatDataSourcePoolMetadata(DataSource dataSource) |
| Modifier and Type | Method and Description |
|---|---|
Integer |
getActive()
Return the current number of active connections that have been allocated from the
data source or
null if that information is not available. |
Boolean |
getDefaultAutoCommit()
The default auto-commit state of connections created by this pool.
|
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 or
null if that
information is not available. |
String |
getValidationQuery()
Return the query to use to validate that a connection is valid or
null if
that information is not available. |
getDataSource, getUsagepublic TomcatDataSourcePoolMetadata(DataSource dataSource)
public Integer getActive()
DataSourcePoolMetadatanull if that information is not available.nullpublic Integer getMax()
DataSourcePoolMetadata-1 if there is no limit. Can also return null if that
information is not available.nullpublic Integer getMin()
DataSourcePoolMetadatanull if that
information is not available.nullpublic String getValidationQuery()
DataSourcePoolMetadatanull if
that information is not available.nullpublic Boolean getDefaultAutoCommit()
DataSourcePoolMetadatanull), default is JDBC driver default (If set to null then the
java.sql.Connection.setAutoCommit(boolean) method will not be called.)nullCopyright © 2019 Pivotal Software, Inc.. All rights reserved.