public final class ExplicitLockingContextThreadLocal
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
private static class |
ExplicitLockingContextThreadLocal.ExplicitLockingContextImpl
This class doesn't need to be thread safe as there's 1-1 mapping between app thread and nonstop threads.
|
Modifier and Type | Field and Description |
---|---|
private VicariousThreadLocal<ExplicitLockingContext> |
contextThreadLocal |
Constructor and Description |
---|
ExplicitLockingContextThreadLocal()
Public constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
areAnyExplicitLocksAcquired()
Returns true if the thread has acquired any locks previously and not released yet
|
ExplicitLockingContext |
getCurrentThreadLockContext()
Returns the thread local for the current thread
|
private final VicariousThreadLocal<ExplicitLockingContext> contextThreadLocal
public ExplicitLockingContextThreadLocal()
public boolean areAnyExplicitLocksAcquired()
public ExplicitLockingContext getCurrentThreadLockContext()