Package com.j_spaces.core.cache
Class XtnData
java.lang.Object
com.j_spaces.core.cache.XtnData
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLockedEntry(IEntryCacheInfo pEntry, OperationID operationID, boolean fifo) voidaddMvccNewGenerationsEntry(MVCCEntryCacheInfo mvccEntryCacheInfo) voidvoidaddToFifoGroupsEntries(IEntryHolder eh, Object groupValue) voidvoidaddWriteActiveLogicallyDeletedEntry(MVCCEntryCacheInfo mvccEntryCacheInfo) booleanbooleanbooleanbooleanlonggetLockedEntries(boolean createIfNull) getLockedFifoEntries(boolean createIfNull) getNeedNotifyEntries(boolean createIfNull) getNewEntries(boolean createIfNull) getNTemplates(boolean createIfNull) getOperationID(String uid) getRTTemplates(boolean createIfNull) getTakenEntries(boolean createIfNull) getUnderXtnEntries(int selectType) get the relevant entries under the xtn according to selected typegetXtn()booleanisLockedEntry(IEntryCacheInfo pEntry) booleanbooleanisReWrittenEntry(String uid) check weather an entry is rewritten under xtnbooleanvoidremoveFromNewEntries(IEntryCacheInfo subject) voidremove reWritten entry indication if existsvoidremoveTakenEntry(IEntryCacheInfo entry) voidvoidvoidvoidsetFifoXtnNumber(long fifoXtnNumber) voidsetInPlaceUpdatedEntry(IEntryHolder eh, Collection<SpaceEntryMutator> mutators) voidsetUpdatedEntry(IEntryHolder eh, boolean[] partialUpdateIndicators) voidgiven a uid, signal the entry as rewritten under the xtnvoidupdateLock(IEntryCacheInfo pEntry, OperationID operationID, boolean isReadOperation, boolean fifo) When user operation under transaction is upgraded from read to update/take, the order of entry should be changed to the most recent, so that the changes in prepare come in the right order.
-
Constructor Details
-
XtnData
-
-
Method Details
-
isLockedEntry
-
signalRewrittenEntry
given a uid, signal the entry as rewritten under the xtn- Parameters:
uid- - uid of entry to signal
-
isReWrittenEntry
check weather an entry is rewritten under xtn- Parameters:
uid- - uid of entry to check- Returns:
- true is entry with this uid is rewritten under xtn
-
removeRewrittenEntryIndication
remove reWritten entry indication if exists- Parameters:
uid- -uid of entry
-
getUnderXtnEntries
get the relevant entries under the xtn according to selected type- Parameters:
selectType- - selected type of entries under the xtn, from com.j_spaces.core.sadapter.SelctType- Returns:
- IStoredList
-
anyFifoEntries
public boolean anyFifoEntries() -
getXtn
- Returns:
- the xtn
-
getXtnEntry
- Returns:
- the xtn entry
-
addLockedEntry
-
updateLock
public void updateLock(IEntryCacheInfo pEntry, OperationID operationID, boolean isReadOperation, boolean fifo) When user operation under transaction is upgraded from read to update/take, the order of entry should be changed to the most recent, so that the changes in prepare come in the right order. For example: read object A read object B take object B take object A will cause a prepare of: B,A instead of A,B. Repeatable read doesn't cause the upgrade since it is not reflected in prepare. -
getOperationID
-
isOperationID
-
setUpdatedEntry
-
setInPlaceUpdatedEntry
-
isUpdatedEntry
-
getUpdatedEntries
-
addToEntriesForFifoGroupScan
-
getEntriesForFifoGroupScan
-
resetEntriesForFifoGroupsScan
public void resetEntriesForFifoGroupsScan() -
anyEntriesForFifoGroupScan
public boolean anyEntriesForFifoGroupScan() -
addToFifoGroupsEntries
-
getFifoGroupsEntries
-
anyFifoGroupOperations
public boolean anyFifoGroupOperations() -
getLockedEntries
-
getLockedEntries
-
anyLockedEntries
public boolean anyLockedEntries() -
setFifoXtnNumber
public void setFifoXtnNumber(long fifoXtnNumber) -
getFifoXtnNumber
public long getFifoXtnNumber() -
getLockedFifoEntries
-
getLockedFifoEntries
-
getNeedNotifyEntries
-
getNeedNotifyEntries
-
getNewEntries
-
getNewEntries
-
removeFromNewEntries
-
getTakenEntries
-
getTakenEntries
-
addToTakenEntriesIfNotInside
-
removeTakenEntry
-
removeUpdatedEntry
-
getNTemplates
-
getNTemplates
-
getRTTemplates
-
getRTTemplates
-
setEntriesForReplicationIn2PCommit
-
getEntriesForReplicationIn2PCommit
-
getMvccNewGenerationsEntry
-
addMvccNewGenerationsEntry
-
removeMvccNewGenerationsEntry
-
getMvccWriteActiveLogicallyDeletedEntry
-
addWriteActiveLogicallyDeletedEntry
-
removeWriteActiveLogicallyDeletedEntry
-