public class RecoveryHelper
extends java.lang.Object
| Constructor and Description |
|---|
RecoveryHelper() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
commit(XAResourceHolderState xaResourceHolderState,
javax.transaction.xa.Xid xid)
Commit the specified branch of a dangling transaction.
|
static java.util.Set<BitronixXid> |
recover(XAResourceHolderState xaResourceHolderState)
Run the recovery process on the target resource.
|
static boolean |
rollback(XAResourceHolderState xaResourceHolderState,
javax.transaction.xa.Xid xid)
Rollback the specified branch of a dangling transaction.
|
public static java.util.Set<BitronixXid> recover(XAResourceHolderState xaResourceHolderState) throws javax.transaction.xa.XAException
xaResourceHolderState - the XAResourceHolderState to recover.javax.transaction.xa.XAException - if XAResource.recover(int) calls fail.public static boolean commit(XAResourceHolderState xaResourceHolderState, javax.transaction.xa.Xid xid)
xaResourceHolderState - the XAResourceHolderState to commit the branch on.xid - the Xid to commit.public static boolean rollback(XAResourceHolderState xaResourceHolderState, javax.transaction.xa.Xid xid)
xaResourceHolderState - the XAResourceHolderState to rollback the branch on.xid - the Xid to rollback.Copyright © 2006-2023 Bitronix Software. All Rights Reserved.