public interface XAImporter extends javax.resource.spi.XATerminator, XARecoverable
| Modifier and Type | Interface and Description |
|---|---|
static class |
XAImporter.ProviderImportResult
The result of a transaction import operation.
|
| 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.
|
XAImporter.ProviderImportResult |
findOrImportTransaction(Xid xid,
int timeout)
Import a transaction.
|
void |
forget(Xid xid)
Forget an imported, prepared transaction.
|
int |
prepare(Xid xid)
Prepare an imported transaction.
|
Xid[] |
recover(int flag)
Initiate a recovery scan.
|
void |
rollback(Xid xid)
Roll back an imported transaction.
|
from, from@NotNull XAImporter.ProviderImportResult 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 XARecoverablecommit in interface javax.resource.spi.XATerminatorxid - 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 XARecoverableforget in interface javax.resource.spi.XATerminatorxid - the transaction ID (must not be null)XAException - if the operation fails for some reasonint prepare(Xid xid) throws XAException
prepare in interface javax.resource.spi.XATerminatorxid - the transaction ID (must not be null)XAResource.XA_OK if the prepare is successful or XAResource.XA_RDONLY if there is no
commit phase necessaryXAException - if the operation fails for some reasonvoid rollback(Xid xid) throws XAException
rollback in interface javax.resource.spi.XATerminatorxid - the transaction ID (must not be null)XAException - if the operation fails for some reason@NotNull Xid[] recover(int flag) throws XAException
recover in interface XARecoverablerecover in interface javax.resource.spi.XATerminatorflag - one of XAResource.TMSTARTRSCAN, XAResource.TMNOFLAGS, or XAResource.TMENDRSCANSimpleXid.NO_XIDS, must not be null)XAException - if the operation fails for some reasonCopyright © 2016 JBoss by Red Hat. All rights reserved.