Interface ReadWriteLockManager

  • All Known Implementing Classes:
    AbstractReadWriteLockManager, ReadPrefReadWriteLockManager, WritePrefReadWriteLockManager

    public interface ReadWriteLockManager
    A lock manager that manages a multi-read, single-write lock. This lock manager allows multiple read locks to be active at the same time. The write lock is exclusive, meaning that no other read- or write locks may be active at the same time.
    Author:
    Arjohn Kampman
    • Method Detail

      • tryReadLock

        Lock tryReadLock()
        Gets a read lock, if available. This method will return null if the read lock is not immediately available.
      • tryWriteLock

        Lock tryWriteLock()
        Gets an exclusive write lock, if available. This method will return null if the write lock is not immediately available.