Package com.j_spaces.kernel.locks
Interface ILockObject
- All Known Subinterfaces:
IBlobStoreLockObject,IEntryHolder,IMVCCLockObject,ISpaceItem,ITemplateHolder
- All Known Implementing Classes:
AbstractSpaceItem,BlobStoreEntryHolder,BlobStoreRefEntryCacheInfo,EntryHolder,MVCCEntryHolder,NotifyTemplateHolder,ReplicationEntryHolder,ShadowEntryHolder,TemplateHolder
public interface ILockObject
TODO add Javadoc
- Since:
- 6.6 the basic interface for a lock object. it can be the locked subject itself or a representing object for eviction based locking
- Version:
- 1.0
- Author:
- Yechiel Fefer
-
Method Summary
Modifier and TypeMethodDescriptiondefault LockSubjectTypegetUID()get the uid for the subjectbooleanreturns true if the lock object is the subject itself (i.e.
-
Method Details
-
isLockSubject
boolean isLockSubject()returns true if the lock object is the subject itself (i.e. entry or template) or a representing object- Returns:
- true if is the subject itself
-
getUID
String getUID()get the uid for the subject- Returns:
- the uid
-
getLockSubjectType
- Returns:
- if this subject need to be locked by its uid or by itself.
-