|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--edu.ucsb.adl.bucket99.ConnectionPool.Status
Describes the status of a connection pool.
| Constructor Summary | |
ConnectionPool.Status(int minimum,
int maximum)
Creates a Status. |
|
| Method Summary | |
int |
getCurrent()
Returns the current number of connections in the pool. |
int |
getInUse()
Returns the number of connections that are currently in use. |
int |
getMaximum()
Returns the maximum number of connections in the pool. |
int |
getMinimum()
Returns the minimum number of connections the pool attempts to maintain. |
void |
update(int current,
int inUse)
Updates the status. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ConnectionPool.Status(int minimum,
int maximum)
Status.
minimum - The minimum number of connections the pool attempts to
maintain.maximum - The maximum number of connections in the pool.| Method Detail |
public void update(int current,
int inUse)
ConnectionPool
only.
current - The current number of connections in the pool.inUse - The number of connections that are currently in use.public int getMinimum()
public int getMaximum()
public int getCurrent()
public int getInUse()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||