public final class Committer extends AbstractPhaseEngine
| Modifier and Type | Method and Description |
|---|---|
void |
commit(BitronixTransaction transaction,
java.util.List<XAResourceHolderState> interestedResources)
Execute phase 2 commit.
|
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.
|
collectNotInterestedResources, collectResourcesUniqueNames, executePhase, logFailedResourcespublic Committer(Executor executor)
public void commit(BitronixTransaction transaction, java.util.List<XAResourceHolderState> interestedResources) throws javax.transaction.HeuristicMixedException, javax.transaction.HeuristicRollbackException, BitronixSystemException, BitronixRollbackException
transaction - the transaction wanting to commit phase 2interestedResources - a map of phase 1 prepared resources wanting to participate in phase 2 using Xids as keysjavax.transaction.HeuristicRollbackException - when all resources committed instead.javax.transaction.HeuristicMixedException - when some resources committed and some rolled back.BitronixSystemException - when an internal error occured.BitronixRollbackException - during 1PC when resource fails to commitprotected 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.