Package bitronix.tm.recovery
Class RecoveryHelper
java.lang.Object
bitronix.tm.recovery.RecoveryHelper
Reovery helper methods.
- Author:
- lorban
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancommit(XAResourceHolderState xaResourceHolderState, Xid xid) Commit the specified branch of a dangling transaction.static Set<BitronixXid>recover(XAResourceHolderState xaResourceHolderState) Run the recovery process on the target resource.static booleanrollback(XAResourceHolderState xaResourceHolderState, Xid xid) Rollback the specified branch of a dangling transaction.
-
Constructor Details
-
RecoveryHelper
public RecoveryHelper()
-
-
Method Details
-
recover
public static Set<BitronixXid> recover(XAResourceHolderState xaResourceHolderState) throws XAException Run the recovery process on the target resource.- Parameters:
xaResourceHolderState- theXAResourceHolderStateto recover.- Returns:
- a Set of BitronixXids.
- Throws:
XAException- ifXAResource.recover(int)calls fail.
-
commit
Commit the specified branch of a dangling transaction.- Parameters:
xaResourceHolderState- theXAResourceHolderStateto commit the branch on.xid- theXidto commit.- Returns:
- true when commit was successful.
-
rollback
Rollback the specified branch of a dangling transaction.- Parameters:
xaResourceHolderState- theXAResourceHolderStateto rollback the branch on.xid- theXidto rollback.- Returns:
- true when rollback was successful.
-