public class SubordinateAtomicAction extends AtomicAction
NO_TIMEOUT
failedList, heuristicList, pendingList, preparedList, readonlyList, savedIntentionList
modifyingActions, objectModel, objectUid, usingActions
Modifier | Constructor and Description |
---|---|
|
SubordinateAtomicAction() |
|
SubordinateAtomicAction(int timeout) |
protected |
SubordinateAtomicAction(Uid actId)
For crash recovery purposes.
|
Modifier and Type | Method and Description |
---|---|
int |
abort()
Abort (rollback) the transaction.
|
boolean |
activated() |
protected boolean |
checkForCurrent()
By default the BasicAction class only allows the termination of a
transaction if it's the one currently associated with the thread.
|
int |
commit()
Commit the transaction, and have heuristic reporting.
|
int |
commit(boolean report_heuristics)
Commit the transaction.
|
boolean |
doBeforeCompletion() |
int |
doCommit() |
void |
doForget()
Deprecated.
Only called via tests
|
int |
doOnePhaseCommit() |
int |
doPrepare() |
int |
doRollback() |
String |
type()
The type of the class is used to locate the state of the transaction log
in the object store.
|
addThread, addThread, begin, begin, cancel, end, getTimeout, removeThread, removeThread, resume, suspend
addSynchronization, afterCompletion, afterCompletion, asyncAfterCompletion, beforeCompletion, getDeferredThrowable, getSynchronizations, running, start, start
Abort, Abort, abortStatus, activate, activate, activeThreads, add, addChildAction, addChildThread, addChildThread, addRecord, async_prepare, Begin, childTransactions, commitStatus, criticalEnd, criticalStart, Current, deactivate, destroy, doAbort, doAbort, doCommit, doCommit, doPrepare, End, equals, finalizeInternal, forgetHeuristics, getDeferredThrowables, getHeuristicDecision, getHierarchy, getSavingUid, getStore, hashCode, hierarchyDepth, insertRecord, isAncestor, maintainHeuristics, onePhaseCommit, parent, phase2Abort, phase2Cleanup, phase2Commit, prepare, preparedStatus, preventCommit, removeChildAction, removeChildThread, removeChildThread, restore_state, save_state, setCheckedAction, setHeuristicDecision, status, topLevelAction, topLevelActionUid, toString, typeOfAction, updateHeuristic, updateState
cleanup, createLists, deactivate, deactivate, disable, forgetAction, get_uid, getMutex, getObjectModel, getStoreRoot, loadObjectState, lockMutex, modified, objectType, packHeader, persist, print, rememberAction, setStatus, setupStore, setupStore, setupStore, terminate, tryLockMutex, unlockMutex, unpackHeader
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
get_uid, preventCommit
public SubordinateAtomicAction()
public SubordinateAtomicAction(int timeout)
protected SubordinateAtomicAction(Uid actId)
actId
- the identifier to recover.public int commit()
commit
in class AtomicAction
ActionStatus
indicating outcome.public int commit(boolean report_heuristics)
commit
in class AtomicAction
ActionStatus
indicating outcome.public int abort()
abort
in class AtomicAction
ActionStatus
indicating outcome.public String type()
type
in class AtomicAction
public int doPrepare()
public int doCommit()
public int doRollback()
public int doOnePhaseCommit()
public void doForget()
public boolean doBeforeCompletion()
protected boolean checkForCurrent()
checkForCurrent
in class AtomicAction
false
to indicate that this transaction can only
be terminated by the right thread.public boolean activated()
Copyright © 2021 JBoss by Red Hat. All rights reserved.