|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.monitor.LockMonitor
public class LockMonitor
Simple thread-safe POJO encapsulating locking stats. Turned this class to Serializable to be able to return copies of instances of this class over RMI. In this case it becomes detached from the EntityLockMonitor factory.
Constructor Summary | |
---|---|
LockMonitor(EntityLockMonitor parent)
|
Method Summary | |
---|---|
void |
contending()
Adjust the counters to indicate a contetion conditions. |
void |
finishedContending(long time)
Adjust the counters to indicate that contention is over If the parent EntityLockMonitor has been initialized the total stats will be updated, too. |
long |
getCurrentContenders()
|
long |
getMaxContenders()
|
long |
getNumContentions()
|
long |
getTimeouts()
|
long |
getTotalTime()
|
void |
increaseTimeouts()
Increase the timeouts on this lock |
void |
reset()
Reset the counters. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LockMonitor(EntityLockMonitor parent)
parent
- factoryMethod Detail |
---|
public long getTotalTime()
public long getNumContentions()
public long getTimeouts()
public long getMaxContenders()
public long getCurrentContenders()
public void contending()
public void finishedContending(long time)
public void increaseTimeouts()
public void reset()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |