public abstract class AbstractEntryData extends Object implements ITransactionalEntryData
Modifier and Type | Field and Description |
---|---|
protected EntryTypeDesc |
_entryTypeDesc |
protected long |
_expirationTime |
protected int |
_versionID |
Modifier | Constructor and Description |
---|---|
protected |
AbstractEntryData(AbstractEntryData other,
EntryXtnInfo xtnInfo) |
protected |
AbstractEntryData(EntryTypeDesc entryTypeDesc,
int version,
long expirationTime,
boolean createEmptyTxnInfoIfNon) |
protected |
AbstractEntryData(EntryTypeDesc entryTypeDesc,
int version,
long expirationTime,
boolean cloneXtnInfo,
AbstractEntryData other,
boolean createEmptyTxnInfoIfNon) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createCopy, createCopyWithoutTxnInfo, createCopyWithoutTxnInfo, createCopyWithSuppliedTxnInfo, createCopyWithTxnInfo, createCopyWithTxnInfo, createShallowClonedCopyWithSuppliedVersion, createShallowClonedCopyWithSuppliedVersionAndExpiration
getDynamicProperties, getEntryDataType, getFixedPropertiesValues, getNumOfFixedProperties, setDynamicProperties, setDynamicPropertyValue, setFixedPropertyValue, setFixedPropertyValues, unsetDynamicPropertyValue
getFixedPropertyValue
protected final EntryTypeDesc _entryTypeDesc
protected final int _versionID
protected final long _expirationTime
protected AbstractEntryData(EntryTypeDesc entryTypeDesc, int version, long expirationTime, boolean createEmptyTxnInfoIfNon)
protected AbstractEntryData(EntryTypeDesc entryTypeDesc, int version, long expirationTime, boolean cloneXtnInfo, AbstractEntryData other, boolean createEmptyTxnInfoIfNon)
protected AbstractEntryData(AbstractEntryData other, EntryXtnInfo xtnInfo)
public ITypeDesc getSpaceTypeDescriptor()
ServerEntry
getSpaceTypeDescriptor
in interface ServerEntry
public EntryTypeDesc getEntryTypeDesc()
getEntryTypeDesc
in interface IEntryData
public Object getPropertyValue(String name)
ServerEntry
getPropertyValue
in interface ServerEntry
name
- Name of requested property.public int getVersion()
ServerEntry
getVersion
in interface ServerEntry
public long getExpirationTime()
ServerEntry
getExpirationTime
in interface ServerEntry
public long getTimeToLive(boolean useDummyIfRelevant)
getTimeToLive
in interface IEntryData
public static long getTimeToLive(long expirationTime, boolean useDummyIfRelevant)
public EntryXtnInfo getEntryXtnInfo()
getEntryXtnInfo
in interface ITransactionalEntryData
public boolean anyReadLockXtn()
anyReadLockXtn
in interface ITransactionalEntryData
public List<XtnEntry> getReadLocksOwners()
getReadLocksOwners
in interface ITransactionalEntryData
public void addReadLockOwner(XtnEntry xtn)
addReadLockOwner
in interface ITransactionalEntryData
public void removeReadLockOwner(XtnEntry xtn)
removeReadLockOwner
in interface ITransactionalEntryData
public void clearReadLockOwners()
clearReadLockOwners
in interface ITransactionalEntryData
public XtnEntry getWriteLockOwner()
getWriteLockOwner
in interface ITransactionalEntryData
public void setWriteLockOwner(XtnEntry writeLockOwner)
setWriteLockOwner
in interface ITransactionalEntryData
public ServerTransaction getWriteLockTransaction()
getWriteLockTransaction
in interface ITransactionalEntryData
public int getWriteLockOperation()
getWriteLockOperation
in interface ITransactionalEntryData
public void setWriteLockOperation(int writeLockOperation)
setWriteLockOperation
in interface ITransactionalEntryData
public XtnEntry getXidOriginated()
getXidOriginated
in interface ITransactionalEntryData
public void setXidOriginated(XtnEntry xidOriginated)
setXidOriginated
in interface ITransactionalEntryData
public ServerTransaction getXidOriginatedTransaction()
getXidOriginatedTransaction
in interface ITransactionalEntryData
public IEntryHolder getOtherUpdateUnderXtnEntry()
getOtherUpdateUnderXtnEntry
in interface ITransactionalEntryData
public void setOtherUpdateUnderXtnEntry(IEntryHolder eh)
setOtherUpdateUnderXtnEntry
in interface ITransactionalEntryData
public Collection<ITemplateHolder> getWaitingFor()
getWaitingFor
in interface ITransactionalEntryData
public void initWaitingFor()
initWaitingFor
in interface ITransactionalEntryData
public boolean isExpired(long limit)
isExpired
in interface ITransactionalEntryData
public boolean isExpired()
isExpired
in interface ITransactionalEntryData
public Object getPathValue(String path)
ServerEntry
getPathValue
in interface ServerEntry
path
- Path pointing to the requested property.public void setPathValue(String path, Object value)
MutableServerEntry
setPathValue
in interface MutableServerEntry
path
- Path pointing to the requested property.value
- Value to set.public void unsetPath(String path)
MutableServerEntry
unsetPath
in interface MutableServerEntry
path
- Path pointing to the requested property.Copyright © GigaSpaces.