public class PoolState extends Object
Modifier and Type | Field and Description |
---|---|
protected long |
accumulatedCheckoutTime |
protected long |
accumulatedCheckoutTimeOfOverdueConnections |
protected long |
accumulatedRequestTime |
protected long |
accumulatedWaitTime |
protected List<org.apache.ibatis.datasource.pooled.PooledConnection> |
activeConnections |
protected long |
badConnectionCount |
protected long |
claimedOverdueConnectionCount |
protected PooledDataSource |
dataSource |
protected long |
hadToWaitCount |
protected List<org.apache.ibatis.datasource.pooled.PooledConnection> |
idleConnections |
protected long |
requestCount |
Constructor and Description |
---|
PoolState(PooledDataSource dataSource) |
Modifier and Type | Method and Description |
---|---|
int |
getActiveConnectionCount() |
long |
getAverageCheckoutTime() |
long |
getAverageOverdueCheckoutTime() |
long |
getAverageRequestTime() |
long |
getAverageWaitTime() |
long |
getBadConnectionCount() |
long |
getClaimedOverdueConnectionCount() |
long |
getHadToWaitCount() |
int |
getIdleConnectionCount() |
long |
getRequestCount() |
String |
toString() |
protected PooledDataSource dataSource
protected final List<org.apache.ibatis.datasource.pooled.PooledConnection> idleConnections
protected final List<org.apache.ibatis.datasource.pooled.PooledConnection> activeConnections
protected long requestCount
protected long accumulatedRequestTime
protected long accumulatedCheckoutTime
protected long claimedOverdueConnectionCount
protected long accumulatedCheckoutTimeOfOverdueConnections
protected long accumulatedWaitTime
protected long hadToWaitCount
protected long badConnectionCount
public PoolState(PooledDataSource dataSource)
public long getRequestCount()
public long getAverageRequestTime()
public long getAverageWaitTime()
public long getHadToWaitCount()
public long getBadConnectionCount()
public long getClaimedOverdueConnectionCount()
public long getAverageOverdueCheckoutTime()
public long getAverageCheckoutTime()
public int getIdleConnectionCount()
public int getActiveConnectionCount()
Copyright © 2010–2015 MyBatis.org. All rights reserved.