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
file
protected final File file
readLock
protected final FileLocks.WrappedLock readLock
writeLock
protected final FileLocks.WrappedLock writeLock
FileLocks.LockHolder
protected FileLocks.LockHolder(File file)
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
Copyright © 2008-2012 JBoss, a division of Red Hat. All Rights Reserved.