Package org.apache.jackrabbit.core.util
Class XAReentrantWriterPreferenceReadWriteLock
- java.lang.Object
-
- EDU.oswego.cs.dl.util.concurrent.WriterPreferenceReadWriteLock
-
- EDU.oswego.cs.dl.util.concurrent.ReentrantWriterPreferenceReadWriteLock
-
- org.apache.jackrabbit.core.util.XAReentrantWriterPreferenceReadWriteLock
-
- All Implemented Interfaces:
EDU.oswego.cs.dl.util.concurrent.ReadWriteLock
public class XAReentrantWriterPreferenceReadWriteLock extends EDU.oswego.cs.dl.util.concurrent.ReentrantWriterPreferenceReadWriteLock
A reentrant read-write lock for synchronization. Unlike a normal reentrant lock, this one allows the lock to be re-entered not just by a thread that's already holding the lock but by any thread within the same transaction.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class EDU.oswego.cs.dl.util.concurrent.WriterPreferenceReadWriteLock
EDU.oswego.cs.dl.util.concurrent.WriterPreferenceReadWriteLock.ReaderLock, EDU.oswego.cs.dl.util.concurrent.WriterPreferenceReadWriteLock.Signaller, EDU.oswego.cs.dl.util.concurrent.WriterPreferenceReadWriteLock.WriterLock
-
-
Constructor Summary
Constructors Constructor Description XAReentrantWriterPreferenceReadWriteLock()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
allowReader()
protected EDU.oswego.cs.dl.util.concurrent.WriterPreferenceReadWriteLock.Signaller
endRead()
protected EDU.oswego.cs.dl.util.concurrent.WriterPreferenceReadWriteLock.Signaller
endWrite()
protected boolean
startRead()
protected boolean
startWrite()
-
-
-
Method Detail
-
allowReader
protected boolean allowReader()
- Overrides:
allowReader
in classEDU.oswego.cs.dl.util.concurrent.ReentrantWriterPreferenceReadWriteLock
-
startWrite
protected boolean startWrite()
- Overrides:
startWrite
in classEDU.oswego.cs.dl.util.concurrent.ReentrantWriterPreferenceReadWriteLock
-
endWrite
protected EDU.oswego.cs.dl.util.concurrent.WriterPreferenceReadWriteLock.Signaller endWrite()
- Overrides:
endWrite
in classEDU.oswego.cs.dl.util.concurrent.ReentrantWriterPreferenceReadWriteLock
-
startRead
protected boolean startRead()
- Overrides:
startRead
in classEDU.oswego.cs.dl.util.concurrent.ReentrantWriterPreferenceReadWriteLock
-
endRead
protected EDU.oswego.cs.dl.util.concurrent.WriterPreferenceReadWriteLock.Signaller endRead()
- Overrides:
endRead
in classEDU.oswego.cs.dl.util.concurrent.ReentrantWriterPreferenceReadWriteLock
-
-