| Package | Description |
|---|---|
| de.aristaflow.adept2.base.sessionmanagement | |
| de.aristaflow.adept2.util.locking |
| Modifier and Type | Class and Description |
|---|---|
static class |
SessionLock.ChildSessionIDLockCount
A
LockCountManager counting session tokens with an equality
based on child session IDs. |
static class |
SessionLock.SessionTreePathLockCount
A
LockCountManager counting session tokens considering session
tokens and their subsessions (but not vice versa!) |
static class |
SessionLock.SubsessionLockCount
A
LockCountManager counting session tokens considering session
tokens and their subsessions (but not vice versa!) |
static class |
SessionLock.UUIDLockCount
A
LockCountManager counting session tokens with an equality
based on their UUIDs (of the corresponding top-level session token). |
| Constructor and Description |
|---|
SessionLock(LockCountManager<SessionToken> writeLockCountManager,
LockCountManager<SessionToken> readLockCountManager,
LockNotification<SessionToken> notification,
java.util.logging.Logger logger)
Creates either a new exclusive lock or a new read/write-lock and using the
LockCountManager for counting locks as well as comparing
objects. |
SessionLock(LockCountManager<SessionToken> writeLockCountManager,
LockCountManager<SessionToken> readLockCountManager,
LockNotification<SessionToken> notification,
java.util.logging.Logger logger)
Creates either a new exclusive lock or a new read/write-lock and using the
LockCountManager for counting locks as well as comparing
objects. |
SessionLock(LockCountManager<SessionToken> lockCountManager,
LockNotification<SessionToken> notification,
java.util.logging.Logger logger)
Creates a new exclusive lock using the designated
LockCountManager for counting locks as well as comparing
objects. |
SessionLock(LockCountManager<SessionToken> lockCountManager,
java.util.logging.Logger logger)
Creates a new exclusive lock using the designated
LockCountManager for counting locks as well as comparing
objects. |
| Constructor and Description |
|---|
SessionLock(java.lang.Class<? extends LockCountManager<SessionToken>> lockCountManager,
boolean exclusive,
LockNotification<SessionToken> notification,
java.util.logging.Logger logger)
Creates either a new exclusive lock or a new read/write-lock and using the
designated
LockCountManager for counting locks as well as
comparing objects. |
SessionLock(java.lang.Class<? extends LockCountManager<SessionToken>> lockCountManager,
boolean exclusive,
java.util.logging.Logger logger)
Creates either a new exclusive lock or a new read/write-lock and using
the designated
LockCountManager for counting locks as well as
comparing sessions. |
| Modifier and Type | Class and Description |
|---|---|
class |
ObjectEqualityLockCount
A
LockCountManager counting objects using
Object.equals(Object) and Object.hashCode(). |
| Modifier and Type | Field and Description |
|---|---|
protected LockCountManager<? super T> |
ReentrantLock.Lock.lockCountManager
The manager for counting the lock acquisitions of an object and
encapsulating whether objects are equal.
|
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Class<? extends LockCountManager<? super L>> |
ObjectLockManager.lockCountManager
The lock count manager implementation which handles the lock counts per
lock.
|
| Constructor and Description |
|---|
Lock(LockCountManager<? super T> lockCountManager)
Creates a new exclusive lock using the designated
LockCountManager for comparing objects. |
ReadLock(LockCountManager<? super T> lockCountManager)
Creates a new read lock using the designated
LockCountManager for comparing objects. |
ReentrantLock(LockCountManager<? super T> writeLockCountManager,
LockCountManager<? super T> readLockCountManager,
LockNotification<T> notification,
java.util.logging.Logger logger)
Creates either a new exclusive lock or a new read/write-lock and using the
LockCountManager for counting locks as well as comparing
objects. |
ReentrantLock(LockCountManager<? super T> writeLockCountManager,
LockCountManager<? super T> readLockCountManager,
LockNotification<T> notification,
java.util.logging.Logger logger)
Creates either a new exclusive lock or a new read/write-lock and using the
LockCountManager for counting locks as well as comparing
objects. |
ReentrantLock(LockCountManager<? super T> lockCountManager,
LockNotification<T> notification,
java.util.logging.Logger logger)
Creates a new exclusive lock using the designated
LockCountManager for counting locks as well as comparing
objects. |
ReentrantLock(LockCountManager<? super T> lockCountManager,
java.util.logging.Logger logger)
Creates a new exclusive lock using the designated
LockCountManager for counting locks as well as comparing
objects. |
WriteLock(LockCountManager<? super T> lockCountManager)
Creates a new write lock using the designated
LockCountManager for comparing objects. |
| Constructor and Description |
|---|
ObjectLockManager(java.lang.Class<? extends LockCountManager<? super L>> lockCountManager,
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. |
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. |
ReentrantLock(java.lang.Class<? extends LockCountManager<? super T>> lockCountManager,
boolean exclusive,
LockNotification<T> notification,
java.util.logging.Logger logger)
Creates either a new exclusive lock or a new read/write-lock and using the
designated
LockCountManager for counting locks as well as
comparing objects. |
ReentrantLock(java.lang.Class<? extends LockCountManager<? super T>> lockCountManager,
boolean exclusive,
java.util.logging.Logger logger)
Creates either a new exclusive lock or a new read/write-lock and using the
designated
LockCountManager for counting locks as well as
comparing objects. |
ThreadLock(java.lang.Class<? extends LockCountManager<java.lang.Thread>> lockCountManager,
boolean exclusive,
LockNotification<java.lang.Thread> notification,
java.util.logging.Logger logger)
Creates a new
ThreadLock using the designated lock count
manager and the designated exclusive mode. |
ThreadLock(java.lang.Class<? extends LockCountManager<java.lang.Thread>> lockCountManager,
boolean exclusive,
java.util.logging.Logger logger)
Creates a new
ThreadLock using the designated lock count
manager and the designated exclusive mode. |
UUIDLock(java.lang.Class<? extends LockCountManager<java.util.UUID>> lockCountManager,
boolean exclusive,
LockNotification<java.util.UUID> notification,
java.util.logging.Logger logger)
Creates a new
UUIDLock using the designated lock count manager
and the designated exclusive mode. |
UUIDLock(java.lang.Class<? extends LockCountManager<java.util.UUID>> lockCountManager,
boolean exclusive,
java.util.logging.Logger logger)
Creates a new
UUIDLock using the designated lock count manager
and the designated exclusive mode. |