public final class DefaultConnectionPoolState extends java.lang.Object implements ConnectionPoolState, java.io.Serializable
Constructor and Description |
---|
DefaultConnectionPoolState() |
Modifier and Type | Method and Description |
---|---|
int |
getInUse() |
int |
getSize() |
long |
getTimestamp() |
int |
getWaiting() |
void |
set(long time,
int connectionCount,
int connectionsInUse,
int connectionsWaiting)
Sets this state
|
public void set(long time, int connectionCount, int connectionsInUse, int connectionsWaiting)
time
- the timeconnectionCount
- the number of connections managed by the poolconnectionsInUse
- the numer of connections in useconnectionsWaiting
- the number pending requests for connectionspublic int getSize()
getSize
in interface ConnectionPoolState
public int getInUse()
getInUse
in interface ConnectionPoolState
public int getWaiting()
getWaiting
in interface ConnectionPoolState
public long getTimestamp()
getTimestamp
in interface ConnectionPoolState