public interface IBasicLockManager<T extends ILockObject>
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.
|
boolean |
isEntryLocksItsSelf(T entry)
true if the lock object is the subject itself (i.e.
|
ILockObject getLockObject(T subject)
If the subject is part of evictable from space (like lru) or evicatble from cache (like in TieredStorage with cache rule) we use the subject itself, otherwise we use per-logical subject a different object.
Note - template and transient entry are not evictable.
ILockObject getLockObject(String subjectUid)
void freeLockObject(ILockObject lockObject)
lockObject
- the lock objectboolean isEntryLocksItsSelf(T entry)
Copyright © GigaSpaces.