| Package | Description |
|---|---|
| de.aristaflow.adept2.base.sessionmanagement | |
| de.aristaflow.adept2.util.locking |
| Modifier and Type | Class and Description |
|---|---|
class |
SessionLock
Represents a reentrant read/write lock or exclusive lock based on session
token.
|
| Modifier and Type | Class and 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.
|
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.reflect.Constructor<? extends ReentrantLock<L>> |
OptimisticObjectLockManager.lockConstr
The constructor for instantiating lock implementations.
|
protected java.lang.reflect.Constructor<? extends ReentrantLock<L>> |
PessimisticObjectLockManager.lockConstr
The constructor for instantiating lock implementations.
|
protected java.util.concurrent.ConcurrentMap<O,ReentrantLock<L>> |
OptimisticObjectLockManager.objectLocks
A mapping from the locked object to the corresponding locking object.
|
protected java.util.concurrent.ConcurrentMap<O,ReentrantLock<L>> |
OptimisticObjectLockManager.LockRemover.objectLocks
A mapping from the locked object to the corresponding lock.
|
protected java.util.Map<O,ReentrantLock<L>> |
PessimisticObjectLockManager.objectLocks
A mapping from the locked object to the corresponding locking object.
|
| Modifier and Type | Method and 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) |
| Modifier and Type | Method and Description |
|---|---|
void |
OptimisticObjectLockManager.LockRemover.locked(ReentrantLock<L> reLock,
boolean writeLock,
L lockingObject,
int lockCount) |
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.unlocked(ReentrantLock<L> reLock,
boolean writeLock,
boolean isLocked,
boolean waitersForLock,
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.
|
| Constructor and Description |
|---|
LockRemover(java.util.concurrent.ConcurrentMap<O,ReentrantLock<L>> objectLocks,
O lockedObject,
java.util.logging.Logger logger)
Creates a new remover for removing the lock from the internal map
containing all locked objects.
|
OptimisticObjectLockManager(java.lang.Class<? extends LockCountManager<? super L>> lockCountManager,
java.lang.Class<? extends ReentrantLock<L>> lock,
java.lang.String lockType,
java.util.logging.Logger logger)
Creates a new
ObjectLockManager with the designated lock count
manager providing the "equality" for the designated reentrant
locks and of the designated type using optimistic locking. |
PessimisticObjectLockManager(java.lang.Class<? extends LockCountManager<? super L>> lockCountManager,
java.lang.Class<? extends ReentrantLock<L>> lock,
java.lang.String lockType,
java.util.logging.Logger logger)
Creates a new
ObjectLockManager with the designated lock count
manager providing the "equality" for the designated reentrant
locks and of the designated type using pessimistic locking. |