public final class Rollbacker extends AbstractPhaseEngine
| Constructor and Description |
|---|
Rollbacker(Executor executor) |
| Modifier and Type | Method and Description |
|---|---|
protected Job |
createJob(XAResourceHolderState resourceHolder)
Create a
Job that is going to execute the phase command on the given resource. |
protected boolean |
isParticipating(XAResourceHolderState xaResourceHolderState)
Determine if a resource is participating in the phase or not.
|
void |
rollback(BitronixTransaction transaction,
java.util.List<XAResourceHolderState> interestedResources)
Rollback the current XA transaction.
|
collectNotInterestedResources, collectResourcesUniqueNames, executePhase, logFailedResourcespublic Rollbacker(Executor executor)
public void rollback(BitronixTransaction transaction, java.util.List<XAResourceHolderState> interestedResources) throws javax.transaction.HeuristicMixedException, javax.transaction.HeuristicCommitException, BitronixSystemException
transaction - the transaction to rollback.interestedResources - resources that should be rolled back.javax.transaction.HeuristicCommitException - when all resources committed instead.javax.transaction.HeuristicMixedException - when some resources committed and some rolled back.BitronixSystemException - when an internal error occured.protected Job createJob(XAResourceHolderState resourceHolder)
AbstractPhaseEngineJob that is going to execute the phase command on the given resource.createJob in class AbstractPhaseEngineresourceHolder - the resource that is going to receive a command.Job that is going to execute the command.protected boolean isParticipating(XAResourceHolderState xaResourceHolderState)
AbstractPhaseEngineisParticipating in class AbstractPhaseEnginexaResourceHolderState - the resource to check for its participation.Copyright © 2006-2021 Bitronix Software. All Rights Reserved.