Uses of Class
de.aristaflow.adept2.util.locking.ReentrantLock
-
Packages that use ReentrantLock Package Description de.aristaflow.adept2.base.sessionmanagement de.aristaflow.adept2.util.locking -
-
Uses of ReentrantLock in de.aristaflow.adept2.base.sessionmanagement
Subclasses of ReentrantLock in de.aristaflow.adept2.base.sessionmanagement Modifier and Type Class Description class
SessionLock
Represents a reentrant read/write lock or exclusive lock based on session token. -
Uses of ReentrantLock in de.aristaflow.adept2.util.locking
Subclasses of ReentrantLock in de.aristaflow.adept2.util.locking Modifier and Type Class Description class
ThreadLock
This class provides a reentrant read/write-lock based on threads.class
UUIDLock
This class provides a reentrant read/write-lock based on UUIDs.Fields in de.aristaflow.adept2.util.locking with type parameters of type ReentrantLock Modifier and Type Field Description protected Constructor<? extends ReentrantLock<L>>
OptimisticObjectLockManager. lockConstr
The constructor for instantiating lock implementations.protected Constructor<? extends ReentrantLock<L>>
PessimisticObjectLockManager. lockConstr
The constructor for instantiating lock implementations.protected ConcurrentMap<O,ReentrantLock<L>>
OptimisticObjectLockManager.LockRemover. objectLocks
A mapping from the locked object to the corresponding lock.protected ConcurrentMap<O,ReentrantLock<L>>
OptimisticObjectLockManager. objectLocks
A mapping from the locked object to the corresponding locking object.protected Map<O,ReentrantLock<L>>
PessimisticObjectLockManager. objectLocks
A mapping from the locked object to the corresponding locking object.Methods in de.aristaflow.adept2.util.locking that return ReentrantLock Modifier and Type Method Description protected abstract ReentrantLock<L>
ObjectLockManager. getObjectLock(O lockedObject)
Gets the lock for the designated object.protected ReentrantLock<L>
OptimisticObjectLockManager. getObjectLock(O lockedObject)
protected ReentrantLock<L>
PessimisticObjectLockManager. getObjectLock(O lockedObject)
Methods in de.aristaflow.adept2.util.locking with parameters of type ReentrantLock Modifier and Type Method Description void
LockNotification. locked(ReentrantLock<T> reLock, boolean writeLock, T lockingObject, int lockCount)
Signals that the designated reentrant lock has been locked by the designated object for the designated number of times.void
OptimisticObjectLockManager.LockRemover. locked(ReentrantLock<L> reLock, boolean writeLock, L lockingObject, int lockCount)
void
LockNotification. unlocked(ReentrantLock<T> reLock, boolean writeLock, boolean isLocked, boolean waitersForLock, T lockingObject, int lockCount)
Signals that the designated reentrant lock has been unlocked and provides the number of times the lock is still held by the designated object.void
OptimisticObjectLockManager.LockRemover. unlocked(ReentrantLock<L> reLock, boolean writeLock, boolean isLocked, boolean waitersForLock, L lockingObject, int lockCount)
Constructor parameters in de.aristaflow.adept2.util.locking with type arguments of type ReentrantLock Constructor Description LockRemover(ConcurrentMap<O,ReentrantLock<L>> objectLocks, O lockedObject, Logger logger)
Creates a new remover for removing the lock from the internal map containing all locked objects.
-