| |
|
| java.lang.Object org.jboss.monitor.LockMonitor
LockMonitor | public class LockMonitor implements Serializable(Code) | | 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.
author: Bill Burke author: Dimitris Andreadis version: $Revision: 57209 $ |
contending | public void contending()(Code) | | Adjust the counters to indicate a contetion conditions.
If the parent EntityLockMonitor has been initialized
the total stats will be updated, as well.
|
finishedContending | public void finishedContending(long time)(Code) | | Adjust the counters to indicate that contention is over
If the parent EntityLockMonitor has been initialized
the total stats will be updated, too.
|
getCurrentContenders | public synchronized long getCurrentContenders()(Code) | | |
getMaxContenders | public synchronized long getMaxContenders()(Code) | | |
getNumContentions | public synchronized long getNumContentions()(Code) | | |
getTimeouts | public synchronized long getTimeouts()(Code) | | |
getTotalTime | public synchronized long getTotalTime()(Code) | | |
increaseTimeouts | public void increaseTimeouts()(Code) | | Increase the timeouts on this lock
|
reset | public void reset()(Code) | | Reset the counters.
CurrentContenders stays unchanged and
MaxCondenders is set to CurrentContenders
|
|
|
|