Package com.j_spaces.core.cache.mvcc
Class MVCCCacheManagerHandler
java.lang.Object
com.j_spaces.core.cache.mvcc.MVCCCacheManagerHandler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateLogicallyDeletedMvccEntryPendingGeneration(XtnEntry xtnEntry, MVCCEntryCacheInfo pEntry, int operationId) voidcreateUpdateMvccEntryPendingGeneration(Context context, XtnEntry xtnEntry, int templateOperation, MVCCEntryCacheInfo entryCacheInfo, MVCCEntryHolder updatedEntry, TypeData typeData) voiddisconnectMVCCEntryFromXtn(Context context, MVCCEntryCacheInfo pEntry, XtnEntry xtnEntry, boolean xtnEnd) longvoidhandleDisconnectNewMVCCEntryGenerationFromTransaction(Context context, MVCCEntryHolder entry, XtnEntry xtnEntry) voidhandleDisconnectOldLogicallyDeletedMVCCEntryGenerationFromTransaction(Context context, MVCCEntryHolder entry, XtnEntry xtnEntry) insertMvccEntryToCache(Context context, MVCCEntryCacheInfo pEntry, ConcurrentMap<String, IEntryCacheInfo> entries) voidsetOldestConsistentGeneration(long newOldestConsistentGeneration) voidupdateLDEntriesCounter(MVCCShellEntryCacheInfo shell, MVCCEntryHolder currentEntry, boolean isInsert, boolean getLatest) voidvalidateMVCCReadWithExpiredGeneration(MVCCGenerationsState genState, int modifiers) Method validates mvcc generation state for READ_COMMITTED operation.
-
Constructor Details
-
MVCCCacheManagerHandler
-
-
Method Details
-
insertMvccEntryToCache
public IEntryCacheInfo insertMvccEntryToCache(Context context, MVCCEntryCacheInfo pEntry, ConcurrentMap<String, IEntryCacheInfo> entries) throws SAException- Throws:
SAException
-
disconnectMVCCEntryFromXtn
public void disconnectMVCCEntryFromXtn(Context context, MVCCEntryCacheInfo pEntry, XtnEntry xtnEntry, boolean xtnEnd) throws SAException - Throws:
SAException
-
handleDisconnectOldLogicallyDeletedMVCCEntryGenerationFromTransaction
public void handleDisconnectOldLogicallyDeletedMVCCEntryGenerationFromTransaction(Context context, MVCCEntryHolder entry, XtnEntry xtnEntry) throws SAException - Throws:
SAException
-
handleDisconnectNewMVCCEntryGenerationFromTransaction
public void handleDisconnectNewMVCCEntryGenerationFromTransaction(Context context, MVCCEntryHolder entry, XtnEntry xtnEntry) throws SAException - Throws:
SAException
-
createUpdateMvccEntryPendingGeneration
public void createUpdateMvccEntryPendingGeneration(Context context, XtnEntry xtnEntry, int templateOperation, MVCCEntryCacheInfo entryCacheInfo, MVCCEntryHolder updatedEntry, TypeData typeData) throws SAException - Throws:
SAException
-
createLogicallyDeletedMvccEntryPendingGeneration
public MVCCEntryCacheInfo createLogicallyDeletedMvccEntryPendingGeneration(XtnEntry xtnEntry, MVCCEntryCacheInfo pEntry, int operationId) -
updateLDEntriesCounter
public void updateLDEntriesCounter(MVCCShellEntryCacheInfo shell, MVCCEntryHolder currentEntry, boolean isInsert, boolean getLatest) -
getOldestConsistentGeneration
public long getOldestConsistentGeneration() -
setOldestConsistentGeneration
public void setOldestConsistentGeneration(long newOldestConsistentGeneration) -
validateMVCCReadWithExpiredGeneration
Method validates mvcc generation state for READ_COMMITTED operation.- Throws:
MVCCReadWithExpiredGenerationException- - if it(generation) is less(older) than the oldest consistent generation
-