Class ReadWriteLockFactory


  • public class ReadWriteLockFactory
    extends java.lang.Object
    Since:
    MicroStrategy Web 7.3.1 or earlier
    • Method Detail

      • 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