public static class DataSourcePool.Status extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
DataSourcePool.Status(String name,
int minSize,
int maxSize,
int free,
int busy,
int waiting,
int highWaterMark,
int waitCount,
int hitCount) |
| 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.
|
String |
getName()
Return the DataSource name.
|
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() |
protected DataSourcePool.Status(String name, int minSize, int maxSize, int free, int busy, int waiting, int highWaterMark, int waitCount, int hitCount)
public String getName()
public int getMinSize()
public int getMaxSize()
public int getFree()
public int getBusy()
public int getWaiting()
public int getHighWaterMark()
public int getWaitCount()
public 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.
Copyright © 2014. All Rights Reserved.