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 |
---|---|
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.
|
Boolean |
getDefaultAutoCommit() |
Integer |
getIdle() |
Integer |
getMax() |
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.
|
String |
getValidationQuery() |
public TomcatDataSourcePoolMetadata(org.apache.tomcat.jdbc.pool.DataSource dataSource)
DataSourcePoolMetadata
object.dataSource
- The datasourcepublic Integer getIdle()
public Integer getActive()
public final long getBorrowed()
public final long getReleasedCount()
public Integer getMax()
public Integer getMin()
public String getValidationQuery()
public Boolean getDefaultAutoCommit()