public interface SubordinateTransaction extends Transaction
Modifier and Type | Method and Description |
---|---|
boolean |
activated() |
Xid |
baseXid() |
boolean |
doBeforeCompletion()
Run beforeCompletion on Synchronizations.
|
boolean |
doCommit()
Drive the subordinate transaction to commit.
|
void |
doForget()
Called to tell the transaction to forget any heuristics.
|
void |
doOnePhaseCommit()
Drive the transaction to commit.
|
int |
doPrepare()
Drive the subordinate transaction through the prepare phase.
|
void |
doRollback()
Drive the subordinate transaction to roll back.
|
Uid |
get_uid() |
void |
recover() |
commit, delistResource, enlistResource, getStatus, registerSynchronization, rollback, setRollbackOnly
int doPrepare()
boolean doCommit() throws IllegalStateException, HeuristicMixedException, HeuristicRollbackException, HeuristicCommitException, SystemException
IllegalStateException
- thrown if the transaction has not been prepared
or is unknown.HeuristicMixedException
- thrown if a heuristic mixed outcome occurs
(where some participants committed whilst others rolled back).HeuristicRollbackException
- thrown if the transaction rolled back.SystemException
- thrown if some other error occurs.HeuristicCommitException
void doRollback() throws IllegalStateException, HeuristicMixedException, HeuristicCommitException, HeuristicRollbackException, SystemException
IllegalStateException
- thrown if the transaction is not known by the
system or has been previously terminated.HeuristicMixedException
- thrown if a heuristic mixed outcome occurs
(can only happen if the transaction was previously prepared and then only if
some participants commit whilst others roll back).HeuristicCommitException
- thrown if the transaction commits (can only
happen if it was previously prepared).SystemException
- thrown if any other error occurs.HeuristicRollbackException
void doOnePhaseCommit() throws IllegalStateException, HeuristicMixedException, SystemException, RollbackException
IllegalStateException
- if the transaction has already terminatedHeuristicRollbackException
- thrown if the transaction
rolls back.HeuristicMixedException
SystemException
RollbackException
void doForget() throws IllegalStateException
IllegalStateException
- thrown if the transaction cannot
be found.boolean doBeforeCompletion() throws SystemException
SystemException
boolean activated()
void recover()
Xid baseXid()
Uid get_uid()
Copyright © 2021 JBoss by Red Hat. All rights reserved.