Package org.eclipse.rdf4j.common.concurrent.locks

## Class ExclusiveLockManager

- java.lang.Object
- - org.eclipse.rdf4j.common.concurrent.locks.ExclusiveLockManager

-     public class ExclusiveLockManager
      extends Object

  A simple non-reentrant lock.
  Author:
    Håvard M. Ottestad

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `ExclusiveLockManager()` |
    `ExclusiveLockManager​(boolean trackLocks)` |
    `ExclusiveLockManager​(boolean trackLocks, int collectionFrequency)` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `Lock` | `getExclusiveLock()` |
    `boolean` | `isActiveLock()` |
    `Lock` | `tryExclusiveLock()` |

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### ExclusiveLockManager

          public ExclusiveLockManager()

    - #### ExclusiveLockManager

          public ExclusiveLockManager​(boolean trackLocks)

    - #### ExclusiveLockManager

          public ExclusiveLockManager​(boolean trackLocks,
                                      int collectionFrequency)

  - ### Method Detail

    - #### tryExclusiveLock

          public Lock tryExclusiveLock()

    - #### getExclusiveLock

          public Lock getExclusiveLock()
                                throws InterruptedException

      Throws:
        `InterruptedException`

    - #### isActiveLock

          public boolean isActiveLock()