Interface IgniteTxLocalEx
-
- All Superinterfaces:
IgniteInternalTx
- All Known Implementing Classes:
GridDhtTxLocal,GridDhtTxLocalAdapter,GridNearTxLocal,IgniteTxLocalAdapter
public interface IgniteTxLocalEx extends IgniteInternalTx
Local transaction API.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.ignite.internal.processors.cache.transactions.IgniteInternalTx
IgniteInternalTx.FinalizationStatus
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @Nullable ThrowablecommitError()booleanlocalFinish(boolean commit, boolean clearThreadMap)Finishes transaction (either commit or rollback).GridCacheVersionminVersion()voiduserCommit()voiduserRollback(boolean clearThreadMap)-
Methods inherited from interface org.apache.ignite.internal.processors.cache.transactions.IgniteInternalTx
activeCachesDeploymentEnabled, activeCachesDeploymentEnabled, addInvalidPartition, addMeta, allEntries, alternateVersions, colocated, commitAsync, commitError, commitVersion, commitVersion, completedVersions, concurrency, currentPrepareFuture, dht, done, empty, entry, errorWhenCommitting, eventNodeId, finalizationStatus, finishFuture, hasWriteKey, implicit, implicitSingle, incrementalSnapshotId, incrementalSnapshotId, internal, invalidate, invalidPartitions, ioPolicy, isInvalidate, isolation, isRollbackOnly, isSystemInvalidate, label, local, localResult, markFinalizing, masterNodeIds, meta, near, nearXidVersion, needsCompletedVersions, nodeId, onePhaseCommit, onOwnerChanged, optimistic, optimisticLockEntries, originatingNodeId, otherNodeId, ownedVersion, ownsLock, ownsLockUnsafe, peek, pessimistic, readCommitted, readEntries, readMap, readSet, remainingTime, removeMeta, repeatableRead, rollbackAsync, salvageTx, seal, serializable, setRollbackOnly, size, startTime, startTimeNanos, state, state, storeEnabled, storeWriteThrough, subjectId, system, systemInvalidate, taskNameHash, threadId, timedOut, timeout, timeout, topologyVersion, topologyVersion, topologyVersionSnapshot, transactionNodes, txCounters, txState, user, writeEntries, writeMap, writeSet, writeVersion, writeVersion, xid, xidVersion
-
-
-
-
Method Detail
-
minVersion
GridCacheVersion minVersion()
- Returns:
- Minimum version involved in transaction.
-
commitError
@Nullable @Nullable Throwable commitError()
- Returns:
- Commit error.
-
userCommit
void userCommit() throws IgniteCheckedException- Throws:
IgniteCheckedException- If commit failed.
-
userRollback
void userRollback(boolean clearThreadMap) throws IgniteCheckedException- Parameters:
clearThreadMap- IftrueremovesGridNearTxLocalfrom thread map.- Throws:
IgniteCheckedException- If rollback failed.
-
localFinish
boolean localFinish(boolean commit, boolean clearThreadMap) throws IgniteCheckedExceptionFinishes transaction (either commit or rollback).- Parameters:
commit-Trueif commit,falseif rollback.clearThreadMap- IftrueremovesGridNearTxLocalfrom thread map.- Returns:
Trueif state has been changed.- Throws:
IgniteCheckedException- If finish failed.
-
-