public class AllInCacheLockManager<T extends ISelfLockingSubject> extends Object implements IBasicLockManager<T>
| Constructor and Description | 
|---|
AllInCacheLockManager()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
freeLockObject(ILockObject lockObject)
free the lock object- no more needed by this thread 
 | 
ILockObject | 
getLockObject(String subjectUid)
based only on subject's uid, return a lock object in order to lock the represented subject
 this method is relevant only for evictable objects 
 | 
ILockObject | 
getLockObject(T subject)
based on subject, return a lock object in order to lock the represented subject 
 | 
ILockObject | 
getLockObject(T subject,
             boolean isEvictable)
based on subject, return a lock object in order to lock the subject 
 | 
boolean | 
isPerLogicalSubjectLockObject(boolean isEvictable)
do we use subject for locking itself ? 
 | 
public ILockObject getLockObject(T subject)
IBasicLockManagergetLockObject in interface IBasicLockManager<T extends ISelfLockingSubject>public ILockObject getLockObject(T subject, boolean isEvictable)
IBasicLockManagergetLockObject in interface IBasicLockManager<T extends ISelfLockingSubject>isEvictable - = true if the subject is part of evictable cache (like lru)public ILockObject getLockObject(String subjectUid)
getLockObject in interface IBasicLockManager<T extends ISelfLockingSubject>public void freeLockObject(ILockObject lockObject)
IBasicLockManagerfreeLockObject in interface IBasicLockManager<T extends ISelfLockingSubject>lockObject - the lock objectpublic boolean isPerLogicalSubjectLockObject(boolean isEvictable)
isPerLogicalSubjectLockObject in interface IBasicLockManager<T extends ISelfLockingSubject>isEvictable - - is subject evictableCopyright © GigaSpaces.