Uses of Interface
de.aristaflow.adept2.util.locking.LockCountManager
-
Packages that use LockCountManager Package Description de.aristaflow.adept2.base.sessionmanagement de.aristaflow.adept2.util.locking -
-
Uses of LockCountManager in de.aristaflow.adept2.base.sessionmanagement
Classes in de.aristaflow.adept2.base.sessionmanagement that implement LockCountManager Modifier and Type Class Description static class
SessionLock.AbstractLockCount
ALockCountManager
counting session tokens with an equality based on the UUID returned by aFunction
provided by subclasses.static class
SessionLock.ChildSessionIDLockCount
ALockCountManager
counting session tokens with an equality based on child session IDs.static class
SessionLock.DownwardSubtreeLockCount
ALockCountManager
considering session tokens and their subsessions (but not vice versa!)static class
SessionLock.SessionIdLockCount
ALockCountManager
counting session tokens with an equality based on their UUIDs (of the corresponding top-level session token).static class
SessionLock.SessionTreePathLockCount
Deprecated.This does not work as intended.static class
SessionLock.SubsessionLockCount
Deprecated.This does not work as intended.static class
SessionLock.UpwardSubtreeLockCount
ALockCountManager
considering session tokens and their subsessions (but not vice versa!)static class
SessionLock.UUIDLockCount
Deprecated.UseSessionLock.SessionIdLockCount
instead.Constructors in de.aristaflow.adept2.base.sessionmanagement with parameters of type LockCountManager Constructor Description SessionLock(LockCountManager<SessionToken> writeLockCountManager, LockCountManager<SessionToken> readLockCountManager, LockNotification<SessionToken> notification, Logger logger)
Creates either a new exclusive lock or a new read/write-lock and using theLockCountManager
for counting locks as well as comparing objects.SessionLock(LockCountManager<SessionToken> lockCountManager, LockNotification<SessionToken> notification, Logger logger)
Creates a new exclusive lock using the designatedLockCountManager
for counting locks as well as comparing objects.SessionLock(LockCountManager<SessionToken> lockCountManager, Logger logger)
Creates a new exclusive lock using the designatedLockCountManager
for counting locks as well as comparing objects.Constructor parameters in de.aristaflow.adept2.base.sessionmanagement with type arguments of type LockCountManager Constructor Description SessionLock(Class<? extends LockCountManager<SessionToken>> lockCountManager, boolean exclusive, LockNotification<SessionToken> notification, Logger logger)
Creates either a new exclusive lock or a new read/write-lock and using the designatedLockCountManager
for counting locks as well as comparing objects.SessionLock(Class<? extends LockCountManager<SessionToken>> lockCountManager, boolean exclusive, Logger logger)
Creates either a new exclusive lock or a new read/write-lock and using the designatedLockCountManager
for counting locks as well as comparing sessions. -
Uses of LockCountManager in de.aristaflow.adept2.util.locking
Classes in de.aristaflow.adept2.util.locking that implement LockCountManager Modifier and Type Class Description class
ObjectEqualityLockCount
Fields in de.aristaflow.adept2.util.locking declared as LockCountManager Modifier and Type Field Description protected LockCountManager<? super T>
ReentrantLock.Lock. lockCountManager
The manager for counting the lock acquisitions of an object and encapsulating whether objects are equal.Fields in de.aristaflow.adept2.util.locking with type parameters of type LockCountManager Modifier and Type Field Description protected Class<? extends LockCountManager<? super L>>
ObjectLockManager. lockCountManager
The lock count manager implementation which handles the lock counts per lock.Constructors in de.aristaflow.adept2.util.locking with parameters of type LockCountManager Constructor Description Lock(LockCountManager<? super T> lockCountManager)
Creates a new exclusive lock using the designatedLockCountManager
for comparing objects.ReadLock(LockCountManager<? super T> lockCountManager)
Creates a new read lock using the designatedLockCountManager
for comparing objects.ReentrantLock(LockCountManager<? super T> writeLockCountManager, LockCountManager<? super T> readLockCountManager, LockNotification<T> notification, Logger logger)
Creates either a new exclusive lock or a new read/write-lock and using theLockCountManager
for counting locks as well as comparing objects.ReentrantLock(LockCountManager<? super T> lockCountManager, LockNotification<T> notification, Logger logger)
Creates a new exclusive lock using the designatedLockCountManager
for counting locks as well as comparing objects.ReentrantLock(LockCountManager<? super T> lockCountManager, Logger logger)
Creates a new exclusive lock using the designatedLockCountManager
for counting locks as well as comparing objects.WriteLock(LockCountManager<? super T> lockCountManager)
Creates a new write lock using the designatedLockCountManager
for comparing objects.Constructor parameters in de.aristaflow.adept2.util.locking with type arguments of type LockCountManager Constructor Description ObjectLockManager(Class<? extends LockCountManager<? super L>> lockCountManager, String lockType, Logger logger)
Creates a newObjectLockManager
with the designated lock count manager providing the "equality" for the designated reentrant locks and of the designated type.OptimisticObjectLockManager(Class<? extends LockCountManager<? super L>> lockCountManager, Class<? extends ReentrantLock<L>> lock, String lockType, Logger logger)
Creates a newObjectLockManager
with the designated lock count manager providing the "equality" for the designated reentrant locks and of the designated type using optimistic locking.PessimisticObjectLockManager(Class<? extends LockCountManager<? super L>> lockCountManager, Class<? extends ReentrantLock<L>> lock, String lockType, Logger logger)
Creates a newObjectLockManager
with the designated lock count manager providing the "equality" for the designated reentrant locks and of the designated type using pessimistic locking.ReentrantLock(Class<? extends LockCountManager<? super T>> lockCountManager, boolean exclusive, LockNotification<T> notification, Logger logger)
Creates either a new exclusive lock or a new read/write-lock and using the designatedLockCountManager
for counting locks as well as comparing objects.ReentrantLock(Class<? extends LockCountManager<? super T>> lockCountManager, boolean exclusive, Logger logger)
Creates either a new exclusive lock or a new read/write-lock and using the designatedLockCountManager
for counting locks as well as comparing objects.ThreadLock(Class<? extends LockCountManager<Thread>> lockCountManager, boolean exclusive, LockNotification<Thread> notification, Logger logger)
Creates a newThreadLock
using the designated lock count manager and the designated exclusive mode.ThreadLock(Class<? extends LockCountManager<Thread>> lockCountManager, boolean exclusive, Logger logger)
Creates a newThreadLock
using the designated lock count manager and the designated exclusive mode.UUIDLock(Class<? extends LockCountManager<UUID>> lockCountManager, boolean exclusive, LockNotification<UUID> notification, Logger logger)
Creates a newUUIDLock
using the designated lock count manager and the designated exclusive mode.UUIDLock(Class<? extends LockCountManager<UUID>> lockCountManager, boolean exclusive, Logger logger)
Creates a newUUIDLock
using the designated lock count manager and the designated exclusive mode.
-