|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.metamatrix.common.pooling.api.ResourceStatistics
public final class ResourceStatistics
ResourceStatistics track the connection stats for a specific Resource instance so the ResoucePool knows
Constructor Summary | |
---|---|
ResourceStatistics()
|
Method Summary | |
---|---|
void |
addConcurrentUser(java.lang.String userName)
Adds a user to the current list of current users of the resource |
int |
getConcurrentUserCount()
Returns the number of users currently using the resource |
long |
getCreationTime()
|
long |
getLastUsed()
|
java.lang.String |
getUserName()
|
boolean |
hasConcurrentUsers()
Returns true if the resource has current users |
void |
markAsUsed()
|
void |
removeConcurrentUser(java.lang.String userName)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResourceStatistics()
Method Detail |
---|
public int getConcurrentUserCount()
public boolean hasConcurrentUsers()
true
if the resource has current users
public void addConcurrentUser(java.lang.String userName)
userName
- public void removeConcurrentUser(java.lang.String userName)
public long getCreationTime()
public long getLastUsed()
public void markAsUsed()
public java.lang.String getUserName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |