Package de.aristaflow.adept2.util.locking
package de.aristaflow.adept2.util.locking
-
ClassDescriptionAn
AcquireLockExceptionindicates that a lock of a specific type on an object can not be acquired since the object is already locked by another locking object (and possibly with another type of lock).This is similar to a normalCountDownLatchbut it uses a wrapped lock for synchronising as well as a new corresponding condition for signalling.ALockCountManagerprovides the means to manage reentrant locks based on objects by counting lock acquisitions.This interface notifies about the state ofReentrantLocks.Class with convenience methods for anObjectLockManagerusing the current thread for locking and using object equality for the locked objects.ObjectLockManager<O,L> A manager for locking objects with reentrant locks whereas the locks are itself object specific.A manager for (optimistically) locking objects with reentrant locks whereas the locks are itself object specific.When unlocking an object for the last time (count is 0), this will remove the corresponding locked object from the map containing all locked objects.A manager for (pessimistically) locking objects with reentrant locks whereas the locks are itself object specific.Represents a reentrant read/write lock or exclusive lock based on objects instead of threads, for instance for locking based on objects.AnReleaseLockExceptionindicates that the lock on an object can not be released since the releasing object does not have the lock.This class provides a reentrant read/write-lock based on threads.This class provides a reentrant read/write-lock based on UUIDs.