Class XtnEntry
java.lang.Object
com.gigaspaces.internal.utils.concurrent.ReentrantSimpleLock
com.j_spaces.core.XtnInfo
com.j_spaces.core.XtnEntry
- All Implemented Interfaces:
ISimpleLock
-
Field Summary
FieldsFields inherited from class XtnInfo
m_Active, m_AlreadyPrepared, m_AnyUpdates, m_CommitRollbackTimeStamp, m_Readonly, m_SingleParticipant, m_startTime, m_Transaction -
Constructor Summary
ConstructorsConstructorDescriptionXtnEntry(ServerTransaction xtn, boolean isBackup) Constructs a new Xtn Entry. -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidbooleanintgetNumOfChangesUnderTransaction(CacheManager cacheManager) booleanisActive()Returns true is new operations can still attach to this transaction, false otherwise (transaction was already committed for example)booleanvoidsetMVCCGenerationsState(MVCCGenerationsState mvccGenerationsState) voidsetMvccRevertGenerationTxn(boolean isMvccRevertGenerationTxn) Methods inherited from class XtnInfo
addUsedIfPossible, decrementUsed, decrementUsed, getLastUsageTime, getOverrideVersionUids, getServerTransaction, getStartTime, getStatus, isFromGateway, isFromReplication, isOnlyEmbeddedJoins, isOperatedUpon, isUsed, setFromGateway, setFromReplication, setGatewayOverrideVersion, setOnlyEmbeddedJoins, setOperatedUpon, setStatus, setUnusedIfPossibleMethods inherited from class ReentrantSimpleLock
lock, tryLock, unlock
-
Field Details
-
_xtnData
-
-
Constructor Details
-
XtnEntry
Constructs a new Xtn Entry.
-
-
Method Details
-
getJoinLock
-
isActive
public boolean isActive()Returns true is new operations can still attach to this transaction, false otherwise (transaction was already committed for example)- Returns:
- true if XtnStatus UNINITIALIZED or BEGUN else false
-
checkAndGetState_Granular
-
getXtnData
-
anyFifoEntriesUnderXtn
public boolean anyFifoEntriesUnderXtn() -
getNumOfChangesUnderTransaction
-
getAllowFifoNotificationsForNonFifoEntries
public FifoBackgroundRequest.AllowFifoNotificationsForNonFifoType getAllowFifoNotificationsForNonFifoEntries() -
createdOnNonBackup
public boolean createdOnNonBackup() -
getMVCCGenerationsState
-
setMVCCGenerationsState
-
applyMVCCGenerationStateFromContext
-
isMvccRevertGenerationTxn
public boolean isMvccRevertGenerationTxn() -
setMvccRevertGenerationTxn
public void setMvccRevertGenerationTxn(boolean isMvccRevertGenerationTxn)
-