|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.metasyntactic.thread.concurrent.WriterPreferenceReadWriteLock | +--org.metasyntactic.thread.concurrent.ReaderPreferenceReadWriteLock
A ReadWriteLock that prefers waiting readers over waiting writers when there is contention. The range of applicability of this class is very limited. In the majority of situations, writer preference locks provide more reasonable semantics.
Field Summary |
Fields inherited from class org.metasyntactic.thread.concurrent.WriterPreferenceReadWriteLock |
activeWriter |
Constructor Summary | |
ReaderPreferenceReadWriteLock()
|
Method Summary | |
protected boolean |
allowReader()
|
Methods inherited from class org.metasyntactic.thread.concurrent.WriterPreferenceReadWriteLock |
readLock, writeLock |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ReaderPreferenceReadWriteLock()
Method Detail |
protected boolean allowReader()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |