private static class ExplicitLockingContextThreadLocal.ExplicitLockingContextImpl extends java.lang.Object implements ExplicitLockingContext
Modifier and Type | Field and Description |
---|---|
private java.util.LinkedList<java.lang.Long> |
lockAcquisitionStack |
private boolean |
locksAcquired |
Modifier | Constructor and Description |
---|---|
private |
ExplicitLockingContextImpl() |
Modifier and Type | Method and Description |
---|---|
boolean |
areAnyExplicitLocksAcquired()
Returns true if the current thread has acquired any locks previously and not released yet
|
boolean |
areLocksAcquiredByOtherThreads(long currentNonstopThreadUniqueId)
Returns true if some other thread than the thread whose unique id is passed in the parameter has acquired any locks previously and
not released yet
|
void |
lockAcquired(long currentNonstopThreadUniqueId)
Mark a lock acquire
|
void |
lockReleased()
Mark a lock release
|
private volatile boolean locksAcquired
private final java.util.LinkedList<java.lang.Long> lockAcquisitionStack
public boolean areAnyExplicitLocksAcquired()
areAnyExplicitLocksAcquired
in interface ExplicitLockingContext
public void lockAcquired(long currentNonstopThreadUniqueId)
lockAcquired
in interface ExplicitLockingContext
public void lockReleased()
lockReleased
in interface ExplicitLockingContext
public boolean areLocksAcquiredByOtherThreads(long currentNonstopThreadUniqueId)
areLocksAcquiredByOtherThreads
in interface ExplicitLockingContext