public class RecoveryHelper extends Object
| Constructor and Description |
|---|
RecoveryHelper() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
commit(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 boolean |
rollback(XAResourceHolderState xaResourceHolderState,
Xid xid)
Rollback the specified branch of a dangling transaction.
|
public static Set<BitronixXid> recover(XAResourceHolderState xaResourceHolderState) throws XAException
xaResourceHolderState - the XAResourceHolderState to recover.XAException - if XAResource.recover(int) calls fail.public static boolean commit(XAResourceHolderState xaResourceHolderState, Xid xid)
xaResourceHolderState - the XAResourceHolderState to commit the branch on.xid - the Xid to commit.public static boolean rollback(XAResourceHolderState xaResourceHolderState, Xid xid)
xaResourceHolderState - the XAResourceHolderState to rollback the branch on.xid - the Xid to rollback.Copyright © 2006-2016 Bitronix Software. All Rights Reserved.