Package com.semedy.reasoner.utils.upgradeablelock


package com.semedy.reasoner.utils.upgradeablelock
  • Class
    Description
    A lock spanning a group of backing locks.
    Utility methods to group-lock and group-unlock collections of locks, including roll back support to ensure that either all locks are acquired or no locks are acquired.
    Extends the JDK ReadWriteLock, providing an update lock in addition to the read lock and the write lock.
    An implementation of ReadWriteUpdateLock, extending the functionality of the JDK ReentrantReadWriteLock with an update lock in addition to the read and write lock, supporting upgrade from read-only operation to writing status, and downgrade again.