public interface XAImporter extends XARecoverable
| Modifier and Type | Method and Description |
|---|---|
void |
beforeComplete(Xid xid)
Perform before-completion processing.
|
void |
commit(Xid xid,
boolean onePhase)
Commit an imported (typically prepared) transaction.
|
Transaction |
findExistingTransaction(Xid xid)
Find an existing transaction on this system.
|
ImportResult<?> |
findOrImportTransaction(Xid xid,
int timeout)
Import a transaction.
|
void |
forget(Xid xid)
Forget an imported, prepared transaction.
|
Xid[] |
recover(int flag,
String parentName)
Initiate a recovery scan.
|
from, from, recover@NotNull ImportResult<?> findOrImportTransaction(Xid xid, int timeout) throws XAException
xid - the transaction ID (must not be null)timeout - the remaining transaction timeout, or 0 if the default should be usednull)XAException - if the import failed for some reasonTransaction findExistingTransaction(Xid xid) throws XAException
null is returned. Normally
the transaction is located only by global ID.xid - the XID to search for (must not be null)null if the transaction is not knownXAException - if the transaction manager failed for some reasonvoid beforeComplete(Xid xid) throws XAException
xid - the transaction ID (must not be null)XAException - if the import failed for some reasonvoid commit(Xid xid, boolean onePhase) throws XAException
commit in interface XARecoverablexid - the transaction ID (must not be null)onePhase - true to perform prepare and commit in one operation, false otherwiseXAException - if the operation fails for some reasonvoid forget(Xid xid) throws XAException
forget in interface XARecoverablexid - the transaction ID (must not be null)XAException - if the operation fails for some reason@NotNull Xid[] recover(int flag, String parentName) throws XAException
recover in interface XARecoverableflag - one of XAResource.TMSTARTRSCAN, XAResource.TMNOFLAGS, or XAResource.TMENDRSCANparentName - the name of the node to recover on behalf of, or null for allSimpleXid.NO_XIDS, must not be null)XAException - if the operation fails for some reasonCopyright © 2017 JBoss by Red Hat. All rights reserved.