| Modifier and Type | Field and Description |
|---|---|
protected Lock |
actualLock |
protected FileLocks.LockHolder |
holder |
| Modifier | Constructor and Description |
|---|---|
protected |
FileLocks.WrappedLock(FileLocks.LockHolder namedLock,
Lock lock) |
| Modifier and Type | Method and Description |
|---|---|
void |
lock() |
FileChannel |
lockedFileChannel()
Returns the
FileLock.channel() associated with the file lock. |
void |
lockInterruptibly() |
Condition |
newCondition() |
boolean |
tryLock() |
boolean |
tryLock(long time,
TimeUnit unit) |
void |
unlock() |
protected final FileLocks.LockHolder holder
protected final Lock actualLock
protected FileLocks.WrappedLock(FileLocks.LockHolder namedLock, Lock lock)
public void lockInterruptibly()
lockInterruptibly in interface Lockpublic Condition newCondition()
newCondition in interface Lockpublic FileChannel lockedFileChannel()
FileLock.channel() associated with the file lock.FileChannel instance.Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.