public interface TransactionImport
| Modifier and Type | Method and Description |
|---|---|
int |
getTransactionRemainingTimeout()
Return duration before current transaction would timeout.
|
javax.resource.spi.XATerminator |
getXATerminator()
Provides a handle to a
XATerminator instance. |
void |
recreate(Xid xid,
long timeout)
Recreate a transaction based on the Xid.
|
void |
registerRecoveryResourceHandler(XAResource xaResource)
Allows an arbitrary XAResource to register for recovery
|
void |
release(Xid xid)
Release a transaction.
|
void recreate(Xid xid, long timeout)
This method imports a transactional context controlled by an external transaction manager.
xid - the Xid object representing a transaction.void release(Xid xid)
This call releases transactional context imported by recreate method.
xid - the Xid object representing a transaction.javax.resource.spi.XATerminator getXATerminator()
XATerminator instance.
The XATerminator exports 2PC protocol control to an external root transaction coordinator.
XATerminator instance.int getTransactionRemainingTimeout()
throws SystemException
IllegalStateException - Thrown if the current thread is
not associated with a transaction.SystemException - Thrown if the transaction manager
encounters an unexpected error condition.void registerRecoveryResourceHandler(XAResource xaResource)
xaResource - XAResource to register for recoveryCopyright © 2019. All rights reserved.