de.schlichtherle.truezip.fs
Class FsConcurrentModel
java.lang.Object
de.schlichtherle.truezip.fs.FsModel
de.schlichtherle.truezip.fs.FsConcurrentModel
@ThreadSafe
@DefaultAnnotation(value=edu.umd.cs.findbugs.annotations.NonNull.class)
public class FsConcurrentModel
- extends FsModel
Supports multiple concurrent reader threads.
- Author:
- Christian Schlichtherle
- See Also:
FsConcurrentController
lock
private final ReentrantReadWriteLock lock
FsConcurrentModel
public FsConcurrentModel(FsMountPoint mountPoint)
FsConcurrentModel
public FsConcurrentModel(FsMountPoint mountPoint,
@CheckForNull
FsModel parent)
readLock
public final ReentrantReadWriteLock.ReadLock readLock()
writeLock
public final ReentrantReadWriteLock.WriteLock writeLock()
assertWriteLockedByCurrentThread
public final void assertWriteLockedByCurrentThread()
throws FsNotWriteLockedException
- Throws:
FsNotWriteLockedException - if the write lock is not
held by the current thread.
assertNotReadLockedByCurrentThread
public final void assertNotReadLockedByCurrentThread(FsNotWriteLockedException ex)
throws FsNotWriteLockedException
- Throws:
FsNotWriteLockedException - if the read lock is
held by the current thread.
Copyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.