Class ConcurrentKeyLock.LockState

java.lang.Object
com.tangosol.util.ConcurrentKeyLock.LockState
Enclosing class:
ConcurrentKeyLock<K,V>

public class ConcurrentKeyLock.LockState extends Object
Live view of a contended key lock.
Since:
26.04
Author:
Aleks Seovic 2026.04.10
  • Constructor Details

    • LockState

      protected LockState(K key, ConcurrentKeyLock.LockEntry entry)
      Construct the lock state.
      Parameters:
      key - the key
      entry - the lock entry
  • Method Details

    • getKey

      public K getKey()
      Return the contended key.
      Returns:
      the contended key
    • getLockHolder

      public Thread getLockHolder()
      Return the current lock holder thread.
      Returns:
      the current lock holder thread, or null
    • isContended

      public boolean isContended()
      Return true iff some thread is contending for the key.
      Returns:
      true iff some thread is contending for the key
    • getSource

      public ConcurrentKeyLock<K,V> getSource()
      Return the source map.
      Returns:
      the source map
    • toString

      public String toString()
      Overrides:
      toString in class Object