org.modeshape.jcr.value.binary

## Class NamedLocks.NamedLock

- java.lang.Object
- - org.modeshape.jcr.value.binary.NamedLocks.NamedLock

- Enclosing class:
    NamedLocks

      protected final class NamedLocks.NamedLock
      extends Object

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected String` | `name`
    `protected Lock` | `readLock`
    `protected Lock` | `writeLock`

  - ### Constructor Summary

    Constructors
    Modifier | Constructor and Description
    --- | ---
    `protected` | `NamedLocks.NamedLock(String name)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `protected int` | `decrementReferenceCount()`
    `protected void` | `incrementReferenceCount()`
    `protected Lock` | `lock(boolean write)`
    `String` | `toString()`
    `protected void` | `unlock(Lock lock)`

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

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

- - ### Field Detail

    - #### name

          protected final String name

    - #### readLock

          protected final Lock readLock

    - #### writeLock

          protected final Lock writeLock

  - ### Constructor Detail

    - #### NamedLocks.NamedLock

          protected NamedLocks.NamedLock(String name)

  - ### Method Detail

    - #### incrementReferenceCount

          protected void incrementReferenceCount()

    - #### decrementReferenceCount

          protected int decrementReferenceCount()

    - #### lock

          protected Lock lock(boolean write)

    - #### unlock

          protected void unlock(Lock lock)

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.