Modifier and Type | Field and Description |
---|---|
protected Lock |
actualLock |
protected FileLocks.LockHolder |
holder |
Modifier | Constructor and Description |
---|---|
protected |
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 WrappedLock(FileLocks.LockHolder namedLock, Lock lock)
public void lockInterruptibly()
lockInterruptibly
in interface Lock
public Condition newCondition()
newCondition
in interface Lock
public FileChannel lockedFileChannel()
FileLock.channel()
associated with the file lock.FileChannel
instance.Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.