public class CommonsDbcpDataSourcePoolMetadata extends AbstractDataSourcePoolMetadata<org.apache.commons.dbcp.BasicDataSource>
DataSourcePoolMetadata
for an Apache Commons DBCP DataSource
.Constructor and Description |
---|
CommonsDbcpDataSourcePoolMetadata(org.apache.commons.dbcp.BasicDataSource 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. |
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, getUsage
public CommonsDbcpDataSourcePoolMetadata(org.apache.commons.dbcp.BasicDataSource dataSource)
public Integer getActive()
DataSourcePoolMetadata
null
if that information is not available.null
public Integer getMax()
DataSourcePoolMetadata
-1
if there is no limit. Can also return null
if that
information is not available.null
public Integer getMin()
DataSourcePoolMetadata
null
if that
information is not available.null
public String getValidationQuery()
DataSourcePoolMetadata
null
if
that information is not available.null
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.