public class TieredStorageLockManager<T extends ISelfLockingSubject> extends Object implements IBasicLockManager<T>
Constructor and Description |
---|
TieredStorageLockManager(SpaceConfigReader configReader) |
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.
|
public TieredStorageLockManager(SpaceConfigReader configReader)
public ILockObject getLockObject(T subject)
IBasicLockManager
getLockObject
in interface IBasicLockManager<T extends ISelfLockingSubject>
public ILockObject getLockObject(String subjectUid)
IBasicLockManager
getLockObject
in interface IBasicLockManager<T extends ISelfLockingSubject>
public void freeLockObject(ILockObject lockObject)
IBasicLockManager
freeLockObject
in interface IBasicLockManager<T extends ISelfLockingSubject>
lockObject
- the lock objectpublic boolean isEntryLocksItsSelf(T entry)
IBasicLockManager
isEntryLocksItsSelf
in interface IBasicLockManager<T extends ISelfLockingSubject>
Copyright © GigaSpaces.