Class CompositeLock

java.lang.Object
com.semedy.reasoner.utils.upgradeablelock.CompositeLock
All Implemented Interfaces:
Lock

public class CompositeLock extends Object implements Lock
A lock spanning a group of backing locks. When this composite lock is locked, it locks all backing locks, and when unlocked, it unlocks all backing locks. Employs roll back logic to ensure that either all locks are acquired or no locks are acquired. Locks are unlocked in the reverse of the order in which the were acquired. This class delegates most of its implementation to the Locks utility class.
Author:
Niall Gallagher