Package com.semedy.reasoner.utils.upgradeablelock
package com.semedy.reasoner.utils.upgradeablelock
-
ClassDescriptionA 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 ofReadWriteUpdateLock
, extending the functionality of the JDKReentrantReadWriteLock
with an update lock in addition to the read and write lock, supporting upgrade from read-only operation to writing status, and downgrade again.