Class AbstractReadWriteLockManager.ReadLock

java.lang.Object
org.eclipse.rdf4j.common.concurrent.locks.AbstractReadWriteLockManager.ReadLock
All Implemented Interfaces:
Lock
Enclosing class:
AbstractReadWriteLockManager

static class AbstractReadWriteLockManager.ReadLock extends Object implements Lock
  • Field Details

    • readersUnlocked

      private final LongAdder readersUnlocked
    • locked

      private boolean locked
  • Constructor Details

    • ReadLock

      public ReadLock(LongAdder readersUnlocked)
  • Method Details

    • isActive

      public boolean isActive()
      Description copied from interface: Lock
      Checks whether the lock is still active.
      Specified by:
      isActive in interface Lock
    • release

      public void release()
      Description copied from interface: Lock
      Release the lock, making it inactive.
      Specified by:
      release in interface Lock