Class SessionLock.UUIDLockCount
- java.lang.Object
 - 
- de.aristaflow.adept2.base.sessionmanagement.SessionLock.UUIDLockCount
 
 
- 
- All Implemented Interfaces:
 LockCountManager<SessionToken>
- Enclosing class:
 - SessionLock
 
@Deprecated public static class SessionLock.UUIDLockCount extends Object implements LockCountManager<SessionToken>
Deprecated.UseSessionLock.SessionIdLockCountinstead.ALockCountManagercounting session tokens with an equality based on their UUIDs (of the corresponding top-level session token). This means, subsessions are equal to parent sessions (and vice versa).- Author:
 - Ulrich Kreher
 
 
- 
- 
Constructor Summary
Constructors Constructor Description UUIDLockCount()Deprecated.Creates a newLockCountManagerfor session tokens, which considers parent and child sessions as equal. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description intdecreaseAndGetLockCount(SessionToken session)Deprecated.Decreases the number of times the designated object holds the lock.StringgetLockOwner()Deprecated.Returns a string representation of one object that currently has a lock.booleanhasLock(SessionToken session)Deprecated.Returns whether the designated object has a lock at least once.booleanhasLocks()Deprecated.Returns whether this lock count manager knows at least one object that has a lock.intincreaseAndGetLockCount(SessionToken session)Deprecated.Increases the number of times the designated object holds the lock. 
 - 
 
- 
- 
Method Detail
- 
hasLock
public boolean hasLock(SessionToken session)
Deprecated.Description copied from interface:LockCountManagerReturns whether the designated object has a lock at least once.- Specified by:
 hasLockin interfaceLockCountManager<SessionToken>- Parameters:
 session- The object which is checked whether it holds a lock.- Returns:
 - Whether the designated object has a lock at least once.
 
 
- 
hasLocks
public boolean hasLocks()
Deprecated.Description copied from interface:LockCountManagerReturns whether this lock count manager knows at least one object that has a lock.- Specified by:
 hasLocksin interfaceLockCountManager<SessionToken>- Returns:
 - Whether at least one object has a lock.
 
 
- 
getLockOwner
public String getLockOwner()
Deprecated.Description copied from interface:LockCountManagerReturns a string representation of one object that currently has a lock. This can be used for user information or tracking purpose. A locking object may not be returned since this would allow to unlock.- Specified by:
 getLockOwnerin interfaceLockCountManager<SessionToken>- Returns:
 - A string representation of one object that currently has a lock.
 
 
- 
increaseAndGetLockCount
public int increaseAndGetLockCount(SessionToken session)
Deprecated.Description copied from interface:LockCountManagerIncreases the number of times the designated object holds the lock.- Specified by:
 increaseAndGetLockCountin interfaceLockCountManager<SessionToken>- Parameters:
 session- The object which has acquired the lock (once again).- Returns:
 - The number of times the designated object has the lock after the increment.
 
 
- 
decreaseAndGetLockCount
public int decreaseAndGetLockCount(SessionToken session)
Deprecated.Description copied from interface:LockCountManagerDecreases the number of times the designated object holds the lock. If the object does not hold the lock, the decrement will be ignored.- Specified by:
 decreaseAndGetLockCountin interfaceLockCountManager<SessionToken>- Parameters:
 session- The object which has released the lock (once again).- Returns:
 - The number of times the designated object has the lock after the decrement.
 
 
 - 
 
 -