public static class ConnectionPool.Status extends Object implements io.ebean.datasource.PoolStatus
| Modifier and Type | Method and Description |
|---|---|
int |
getBusy()
Return the current number of busy connections in the pool.
|
int |
getFree()
Return the current number of free connections in the pool.
|
int |
getHighWaterMark()
Return the high water mark of busy connections.
|
int |
getHitCount()
Return the total number of times there was an attempt to get a
connection.
|
int |
getMaxSize()
Return the max pool size.
|
int |
getMinSize()
Return the min pool size.
|
int |
getWaitCount()
Return the total number of times a thread had to wait.
|
int |
getWaiting()
Return the current number of threads waiting for a connection.
|
String |
toString() |
public int getMinSize()
getMinSize in interface io.ebean.datasource.PoolStatuspublic int getMaxSize()
getMaxSize in interface io.ebean.datasource.PoolStatuspublic int getFree()
getFree in interface io.ebean.datasource.PoolStatuspublic int getBusy()
getBusy in interface io.ebean.datasource.PoolStatuspublic int getWaiting()
getWaiting in interface io.ebean.datasource.PoolStatuspublic int getHighWaterMark()
getHighWaterMark in interface io.ebean.datasource.PoolStatuspublic int getWaitCount()
getWaitCount in interface io.ebean.datasource.PoolStatuspublic int getHitCount()
If the attempt to get a connection failed with a timeout or other exception those attempts are still included in this hit count.
getHitCount in interface io.ebean.datasource.PoolStatusCopyright © 2018. All rights reserved.