Class ConcurrentKeyLock.LockState
java.lang.Object
com.tangosol.util.ConcurrentKeyLock.LockState
- Enclosing class:
ConcurrentKeyLock<K,V>
Live view of a contended key lock.
- Since:
- 26.04
- Author:
- Aleks Seovic 2026.04.10
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedLockState(K key, ConcurrentKeyLock.LockEntry entry) Construct the lock state. -
Method Summary
-
Constructor Details
-
LockState
Construct the lock state.- Parameters:
key- the keyentry- the lock entry
-
-
Method Details
-
getKey
-
getLockHolder
Return the current lock holder thread.- Returns:
- the current lock holder thread, or
null
-
isContended
public boolean isContended()Returntrueiff some thread is contending for the key.- Returns:
trueiff some thread is contending for the key
-
getSource
-
toString
-