Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| ModeShape Distribution 3.0.0.Beta3
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.modeshape.jcr.value.binary
Class FileLocks.LockHolder

    java.lang.Object
      org.modeshape.jcr.value.binary.FileLocks.LockHolder

Enclosing class:
  FileLocks

    protected final class FileLocks.LockHolder

extends Object

Field Summary
`protected File` | `file`
`protected FileLocks.WrappedLock` | `readLock`
`protected FileLocks.WrappedLock` | `writeLock`

Constructor Summary
`protected` | `FileLocks.LockHolder(File file)`

Method Summary
`protected int` | `decrementReferenceCount()`
`protected void` | `incrementReferenceCount()`
`protected FileLocks.WrappedLock` | `lock(boolean write, boolean block)`
`protected FileChannel` | `lockedFileChannel()`
`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

### file

    protected final File file

### readLock

    protected final FileLocks.WrappedLock readLock

### writeLock

    protected final FileLocks.WrappedLock writeLock

Constructor Detail

### FileLocks.LockHolder

    protected FileLocks.LockHolder(File file)

Method Detail

### lockedFileChannel

    protected FileChannel lockedFileChannel()

### incrementReferenceCount

    protected void incrementReferenceCount()

### decrementReferenceCount

    protected int decrementReferenceCount()

### lock

    protected FileLocks.WrappedLock lock(boolean write,
                                         boolean block)
                                  throws IOException

  Throws:
    `IOException`

### unlock

    protected void unlock(Lock lock)

### toString

    public String toString()

  Overrides:
    `toString` in class `Object`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| ModeShape Distribution 3.0.0.Beta3
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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