|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sourceforge.jemm.client.events.LockTracerImpl
public class LockTracerImpl
A LockTracer implementation which deals with multiple enter and exit events and tracks the number of locks per thread.
Constructor Summary | |
---|---|
LockTracerImpl(LockContextListener listener)
|
Method Summary | |
---|---|
void |
beginLock(java.lang.Object source,
java.lang.Object lock)
If no locks exist then tracks one, otherwise increase the internal count. |
boolean |
currentTreadHasAnyLock()
Determines if the current thread has a lock at all. |
void |
endLock(java.lang.Object source,
java.lang.Object lock)
Removes a lock, if zero removes the presence of a lock. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LockTracerImpl(LockContextListener listener)
Method Detail |
---|
public void beginLock(java.lang.Object source, java.lang.Object lock)
LockTracer
beginLock
in interface LockTracer
public void endLock(java.lang.Object source, java.lang.Object lock)
LockTracer
endLock
in interface LockTracer
public boolean currentTreadHasAnyLock()
LockTracer
currentTreadHasAnyLock
in interface LockTracer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |