@ThreadSafe public final class FsLockModel extends FsDecoratingModel<FsModel>
FsLockController
delegate
Constructor and Description |
---|
FsLockModel(FsModel model) |
Modifier and Type | Method and Description |
---|---|
void |
checkWriteLockedByCurrentThread()
Asserts that the write lock is held by the current thread.
|
boolean |
isWriteLockedByCurrentThread()
Returns
true if and only if the write lock is held by the
current thread. |
ReentrantReadWriteLock.ReadLock |
readLock() |
ReentrantReadWriteLock.WriteLock |
writeLock() |
getMountPoint, getParent, isTouched, setTouched, toString
public FsLockModel(FsModel model)
public void checkWriteLockedByCurrentThread() throws de.schlichtherle.truezip.fs.FsNeedsWriteLockException
FsNeedsWriteLockException
- if the write lock is not
held by the current thread.isWriteLockedByCurrentThread()
public boolean isWriteLockedByCurrentThread()
true
if and only if the write lock is held by the
current thread.
This method should only get used for assert statements, not for lock
control!true
if and only if the write lock is held by the
current thread.checkWriteLockedByCurrentThread()
public ReentrantReadWriteLock.ReadLock readLock()
public ReentrantReadWriteLock.WriteLock writeLock()
Copyright © 2005-2012 Schlichtherle IT Services. All Rights Reserved.