public class TomcatDataSourcePoolMetadata
extends io.micronaut.jdbc.metadata.AbstractDataSourcePoolMetadata<org.apache.tomcat.jdbc.pool.DataSource>
DataSourcePoolMetadata
for a Tomcat DataSource
.Constructor and Description |
---|
TomcatDataSourcePoolMetadata(org.apache.tomcat.jdbc.pool.DataSource dataSource)
Tomcat typed
DataSourcePoolMetadata object. |
Modifier and Type | Method and Description |
---|---|
java.lang.Integer |
getActive() |
long |
getBorrowed()
Return the number of connections that have been borrowed from the
data source or 0 if that information is not available.
|
java.lang.Boolean |
getDefaultAutoCommit() |
java.lang.Integer |
getIdle() |
java.lang.Integer |
getMax() |
java.lang.Integer |
getMin() |
long |
getReleasedCount()
Return the number of connections that have been released from the
data source or 0 if that information is not available.
|
java.lang.String |
getValidationQuery() |
public TomcatDataSourcePoolMetadata(org.apache.tomcat.jdbc.pool.DataSource dataSource)
DataSourcePoolMetadata
object.dataSource
- The datasourcepublic java.lang.Integer getIdle()
public java.lang.Integer getActive()
public final long getBorrowed()
public final long getReleasedCount()
public java.lang.Integer getMax()
public java.lang.Integer getMin()
public java.lang.String getValidationQuery()
public java.lang.Boolean getDefaultAutoCommit()