public interface XAImporter extends javax.resource.spi.XATerminator, XARecoverable
| Modifier and Type | Method and Description |
|---|---|
void |
beforeComplete(Xid xid)
Perform before-completion processing.
|
Transaction |
beginImported(Xid xid,
int timeout)
Import a transaction.
|
void |
commit(Xid xid,
boolean onePhase)
Commit an imported (typically prepared) 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, fromTransaction beginImported(Xid xid, int timeout) throws XAException
xid - the transaction ID (must not be null)timeout - the remaining transaction timeoutnull)XAException - if the import 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 reasonXid[] 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.