Class ReadWriteLockFactory
- java.lang.Object
-
- com.microstrategy.utils.concurrent.ReadWriteLockFactory
-
public class ReadWriteLockFactory extends java.lang.Object
- Since:
- MicroStrategy Web 7.3.1 or earlier
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ReadWriteLock
createLock()
This helps determine the appropriate read-write lock implementation to use.static ReadWriteLock
getDisabledLock()
Useful for testing or comparing scenarios without any locking.static ReadWriteLockFactory
getInstance()
-
-
-
Method Detail
-
getInstance
public static ReadWriteLockFactory getInstance()
-
createLock
public ReadWriteLock createLock()
This helps determine the appropriate read-write lock implementation to use. Doug Lea provides quite a few in his library. This method returns a reentrant writer preference lock.- Returns:
- A read-write lock
- See Also:
ReentrantWriterPreferenceReadWriteLock
-
getDisabledLock
public static ReadWriteLock getDisabledLock()
Useful for testing or comparing scenarios without any locking.- Returns:
- a read write lock that does not do any locking or synchronization of any sort.
- Since:
- MicroStrategy Web 8.1.0
-
-