public final class Preparer extends AbstractPhaseEngine
| Modifier and Type | Method and Description |
|---|---|
protected Job |
createJob(XAResourceHolderState xaResourceHolderState)
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.
|
java.util.List<XAResourceHolderState> |
prepare(BitronixTransaction transaction)
Execute phase 1 prepare.
|
collectNotInterestedResources, collectResourcesUniqueNames, executePhase, logFailedResourcespublic Preparer(Executor executor)
public java.util.List<XAResourceHolderState> prepare(BitronixTransaction transaction) throws javax.transaction.RollbackException, BitronixSystemException
transaction - the transaction to prepare.XAResource.XA_OK.javax.transaction.RollbackException - when an error occured that can be fixed with a rollback.BitronixSystemException - when an internal error occured.protected Job createJob(XAResourceHolderState xaResourceHolderState)
AbstractPhaseEngineJob that is going to execute the phase command on the given resource.createJob in class AbstractPhaseEnginexaResourceHolderState - 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-2022 Bitronix Software. All Rights Reserved.