public class

ReadWriteLockFactory

extends Object
java.lang.Object
   ↳ com.microstrategy.utils.concurrent.ReadWriteLockFactory

Summary

Public Methods
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()
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

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

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.

public static ReadWriteLockFactory getInstance ()