@ThreadSafe @DefaultAnnotation(value=edu.umd.cs.findbugs.annotations.NonNull.class) public final class FsConcurrentModel extends FsDecoratingModel<FsModel>
FsConcurrentController| Modifier and Type | Field and Description |
|---|---|
private ReentrantReadWriteLock |
lock |
delegate| Constructor and Description |
|---|
FsConcurrentModel(FsModel model) |
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
assertNotReadLockedByCurrentThread(FsNotWriteLockedException ex) |
void |
assertWriteLockedByCurrentThread()
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. |
(package private) ReentrantReadWriteLock.ReadLock |
readLock() |
(package private) ReentrantReadWriteLock.WriteLock |
writeLock() |
getMountPoint, getParent, isTouched, setTouched, toStringprivate final ReentrantReadWriteLock lock
public FsConcurrentModel(FsModel model)
ReentrantReadWriteLock.ReadLock readLock()
ReentrantReadWriteLock.WriteLock writeLock()
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.assertWriteLockedByCurrentThread()public void assertWriteLockedByCurrentThread()
throws FsNotWriteLockedException
FsNotWriteLockedException - if the write lock is not
held by the current thread.isWriteLockedByCurrentThread()void assertNotReadLockedByCurrentThread(FsNotWriteLockedException ex) throws FsNotWriteLockedException
ex - the caught exception.FsNotWriteLockedException - if the read lock is
held by the current thread.Copyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.