nxt.util

## Interface ReadWriteUpdateLock.Lock

- Enclosing class:
    ReadWriteUpdateLock

      public static interface ReadWriteUpdateLock.Lock

  Lock interface

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `hasLock()` Check if the thread holds the lock
    `void` | `lock()` Obtain the lock
    `void` | `unlock()` Release the lock

- - ### Method Detail

    - #### lock

          void lock()

      Obtain the lock

    - #### unlock

          void unlock()

      Release the lock

    - #### hasLock

          boolean hasLock()

      Check if the thread holds the lock
      Returns:
        TRUE if the thread holds the lock