## Uses of Interface
org.eclipse.rdf4j.common.concurrent.locks.Lock

- Packages that use Lock
  Package | Description
  --- | ---
  org.eclipse.rdf4j.common.concurrent.locks | Package offering various locking scheme implementations.
  org.eclipse.rdf4j.sail | RDF Storage And Inference Layer (RDF Sail): a set of interfaces defining an SPI for RDF databases.
  org.eclipse.rdf4j.sail.helpers | Abstract base implementation and internal helper classes for Sail implementations.
  org.eclipse.rdf4j.sail.nativerdf | The Native Store.

- - ### Uses of Lock in org.eclipse.rdf4j.common.concurrent.locks

    Methods in org.eclipse.rdf4j.common.concurrent.locks that return Lock
    Modifier and Type | Method | Description
    --- | --- | ---
    `Lock` | LockManager.`createLock​(String alias)` | Creates a new active lock.
    `protected Lock` | AbstractReadWriteLockManager.`createReadLock()` | Creates a new Lock for reading and increments counter for active readers.
    `protected Lock` | AbstractReadWriteLockManager.`createWriteLock()` | Creates a new Lock for writing.
    `Lock` | ExclusiveLockManager.`getExclusiveLock()` | Gets the exclusive lock.
    `Lock` | ReadPrefReadWriteLockManager.`getReadLock()` | Gets a read lock.
    `Lock` | ReadWriteLockManager.`getReadLock()` | Gets a read lock.
    `Lock` | WritePrefReadWriteLockManager.`getReadLock()` | Gets a read lock.
    `Lock` | ReadPrefReadWriteLockManager.`getWriteLock()` | Gets an exclusive write lock.
    `Lock` | ReadWriteLockManager.`getWriteLock()` | Gets an exclusive write lock.
    `Lock` | WritePrefReadWriteLockManager.`getWriteLock()` | Gets an exclusive write lock.
    `Lock` | ExclusiveLockManager.`tryExclusiveLock()` | Gets the exclusive lock, if available.
    `Lock` | ReadPrefReadWriteLockManager.`tryReadLock()` | Gets a read lock, if available.
    `Lock` | ReadWriteLockManager.`tryReadLock()` | Gets a read lock, if available.
    `Lock` | WritePrefReadWriteLockManager.`tryReadLock()` | Gets a read lock, if available.
    `Lock` | ReadPrefReadWriteLockManager.`tryWriteLock()` | Gets an exclusive write lock, if available.
    `Lock` | ReadWriteLockManager.`tryWriteLock()` | Gets an exclusive write lock, if available.
    `Lock` | WritePrefReadWriteLockManager.`tryWriteLock()` | Gets an exclusive write lock, if available.

    Constructors in org.eclipse.rdf4j.common.concurrent.locks with parameters of type Lock
    Constructor | Description
    --- | ---
    `LockingIteration​(Lock lock, Iteration<? extends E,​X> iter)` | Creates a new LockingIteration.

  - ### Uses of Lock in org.eclipse.rdf4j.sail

    Methods in org.eclipse.rdf4j.sail that return Lock
    Modifier and Type | Method | Description
    --- | --- | ---
    `Lock` | LockManager.`lockOrFail()` | Creates a lock in a SAIL if it does not yet exist.
    `Lock` | LockManager.`tryLock()` | Creates a lock in a SAIL if it does not yet exist.

  - ### Uses of Lock in org.eclipse.rdf4j.sail.helpers

    Methods in org.eclipse.rdf4j.sail.helpers that return Lock
    Modifier and Type | Method | Description
    --- | --- | ---
    `protected Lock` | AbstractSailConnection.`getExclusiveConnectionLock()` | Deprecated. Use `AbstractSailConnection.connectionLock` directly instead.
    `protected Lock` | AbstractSailConnection.`getSharedConnectionLock()` | Deprecated. Use `AbstractSailConnection.connectionLock` directly instead.
    `protected Lock` | AbstractSailConnection.`getTransactionLock()` | Deprecated. Use `AbstractSailConnection.updateLock` directly instead.
    `Lock` | DirectoryLockManager.`lockOrFail()` | Creates a lock in a directory if it does not yet exist.
    `Lock` | DirectoryLockManager.`tryLock()` | Creates a lock in a directory if it does not yet exist.

  - ### Uses of Lock in org.eclipse.rdf4j.sail.nativerdf

    Methods in org.eclipse.rdf4j.sail.nativerdf that return Lock
    Modifier and Type | Method | Description
    --- | --- | ---
    `Lock` | ValueStore.`getReadLock()` | Deprecated. Gets a read lock on this value store that can be used to prevent values from being removed while the lock is active.
    `protected Lock` | NativeStore.`getTransactionLock​(IsolationLevel level)` | This call will block when `IsolationLevels.NONE` is provided when there are active transactions with a higher isolation and block when a higher isolation is provided when there are active transactions with `IsolationLevels.NONE` isolation.