Interface RecursiveLock

All Superinterfaces:
Lock, ThreadLock
All Known Subinterfaces:
RecursiveThreadGroupLock

public interface RecursiveLock extends ThreadLock
Reentrance capable locking toolkit.
  • Method Details

    • getHoldCount

      int getHoldCount()
      Return the number of locks issued to this lock by the same thread.
      • A hold count of 0 identifies this lock as unlocked.
      • A hold count of 1 identifies this lock as locked.
      • A hold count of > 1 identifies this lock as recursively lock.
    • getQueueLength

      int getQueueLength()