public interface DataSourcePool extends DataSource
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Return the dataSource name.
|
PoolStatistics |
getStatistics(boolean reset)
Return the aggregated execution statistics collected on all the connections in the pool.
|
PoolStatus |
getStatus(boolean reset)
Return the current status of the connection pool.
|
boolean |
isAutoCommit()
Return true if the pool defaults to using autocommit.
|
void |
shutdown(boolean deregisterDriver)
Shutdown the pool with the option to deregister the driver.
|
getConnection, getConnectiongetLoginTimeout, getLogWriter, getParentLogger, setLoginTimeout, setLogWriterisWrapperFor, unwrapboolean isAutoCommit()
void shutdown(boolean deregisterDriver)
PoolStatus getStatus(boolean reset)
This is cheaper than getStatistics() in that it just the counts of free, busy, wait etc and does not included times (total connection time etc).
If you pass reset = true then the counters are reset.
PoolStatistics getStatistics(boolean reset)
If reset is set to true the counters are reset once the statistics have been collected.
Copyright © 2018. All rights reserved.