Class AbstractSpaceItem
java.lang.Object
com.gigaspaces.internal.server.storage.AbstractSpaceItem
- All Implemented Interfaces:
ISpaceItem,Textualizable,ILockObject
- Direct Known Subclasses:
EntryHolder,TemplateHolder
- Since:
- 7.0
- Author:
- Niv Ingberg
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractSpaceItem(IServerTypeDesc typeDesc, String uid, long scn, boolean isTransient) protectedAbstractSpaceItem(IEntryHolder other) -
Method Summary
Modifier and TypeMethodDescriptionvoidlongprotected booleangetFlag(byte mask) intintgetOrder()longgetSCN()getUID()get the uid for the subjectintbooleanabstract booleanhasShadow(boolean safeEntry) booleanbooleanbooleanbooleanbooleanif entryHolder is used as lockObject (for example in ALL_IN_CACHE) - its the lock subject itselfbooleanbooleanisShadow()IEntryHolder Members *booleanvoidsetDeleted(boolean isDeleted) voidabstract voidsetExpirationTime(long expirationTime) protected voidsetFlag(byte mask, boolean value) voidsetHasWaitingFor(boolean hasWaitingFor) voidsetMaybeUnderXtn(boolean maybeUnderXtn) voidsetOrder(int order) voidsetSCN(long scn) voidsetTransient(boolean _transient) voidtoString()voidtoText(Textualizer textualizer) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.j_spaces.kernel.locks.ILockObject
getLockSubjectTypeMethods inherited from interface com.gigaspaces.internal.server.storage.ISpaceItem
getEntryData, getUidToOperateBy, getXidOriginated, getXidOriginatedTransaction, updateVersionAndExpiration
-
Constructor Details
-
AbstractSpaceItem
-
AbstractSpaceItem
-
-
Method Details
-
getServerTypeDesc
- Specified by:
getServerTypeDescin interfaceISpaceItem
-
getClassName
- Specified by:
getClassNamein interfaceISpaceItem
-
getUID
Description copied from interface:ILockObjectget the uid for the subject- Specified by:
getUIDin interfaceILockObject- Returns:
- the uid
-
setUID
-
getSCN
public long getSCN()- Specified by:
getSCNin interfaceISpaceItem
-
setSCN
public void setSCN(long scn) -
getExpirationTime
public long getExpirationTime() -
setExpirationTime
public abstract void setExpirationTime(long expirationTime) - Specified by:
setExpirationTimein interfaceISpaceItem
-
getVersionID
public int getVersionID() -
isTransient
public boolean isTransient()- Specified by:
isTransientin interfaceISpaceItem
-
setTransient
public void setTransient(boolean _transient) -
isMaybeUnderXtn
public boolean isMaybeUnderXtn()- Specified by:
isMaybeUnderXtnin interfaceISpaceItem
-
setMaybeUnderXtn
public void setMaybeUnderXtn(boolean maybeUnderXtn) - Specified by:
setMaybeUnderXtnin interfaceISpaceItem
-
hasWaitingFor
public boolean hasWaitingFor()- Specified by:
hasWaitingForin interfaceISpaceItem
-
setHasWaitingFor
public void setHasWaitingFor(boolean hasWaitingFor) - Specified by:
setHasWaitingForin interfaceISpaceItem
-
isDeleted
public boolean isDeleted()- Specified by:
isDeletedin interfaceISpaceItem
-
setDeleted
public void setDeleted(boolean isDeleted) - Specified by:
setDeletedin interfaceISpaceItem
-
getFlag
protected boolean getFlag(byte mask) -
setFlag
protected void setFlag(byte mask, boolean value) -
isDummyLease
public boolean isDummyLease()- Specified by:
isDummyLeasein interfaceISpaceItem
-
isDummyLeaseAndNotExpired
public boolean isDummyLeaseAndNotExpired()- Specified by:
isDummyLeaseAndNotExpiredin interfaceISpaceItem
-
setDummyLease
public void setDummyLease()- Specified by:
setDummyLeasein interfaceISpaceItem
-
dump
-
isLockSubject
public boolean isLockSubject()if entryHolder is used as lockObject (for example in ALL_IN_CACHE) - its the lock subject itself- Specified by:
isLockSubjectin interfaceILockObject- Returns:
- true if is the subject itself
-
isShadow
public boolean isShadow()IEntryHolder Members * -
hasShadow
public boolean hasShadow() -
hasShadow
public abstract boolean hasShadow(boolean safeEntry) -
getNotifyType
public int getNotifyType() -
getHandback
-
getOrder
public int getOrder() -
setOrder
public void setOrder(int order) -
getRoutingValue
-
getEntryId
-
toText
- Specified by:
toTextin interfaceTextualizable
-
toString
-