Package io.agroal.narayana
Class BaseXAResource
java.lang.Object
io.agroal.narayana.BaseXAResource
- All Implemented Interfaces:
XAResource,org.jboss.tm.XAResourceWrapper
- Author:
- Luis Barreiro, Jesper Pedersen
-
Field Summary
Fields inherited from interface javax.transaction.xa.XAResource
TMENDRSCAN, TMFAIL, TMJOIN, TMNOFLAGS, TMONEPHASE, TMRESUME, TMSTARTRSCAN, TMSUCCESS, TMSUSPEND, XA_OK, XA_RDONLY -
Constructor Summary
ConstructorsConstructorDescriptionBaseXAResource(TransactionAware transactionAware, XAResource xaResource, String jndiName) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidintbooleanisSameRM(XAResource xaRes) intXid[]recover(int flag) voidbooleansetTransactionTimeout(int seconds) void
-
Constructor Details
-
BaseXAResource
-
-
Method Details
-
getResource
- Specified by:
getResourcein interfaceorg.jboss.tm.XAResourceWrapper
-
getProductName
- Specified by:
getProductNamein interfaceorg.jboss.tm.XAResourceWrapper
-
getProductVersion
- Specified by:
getProductVersionin interfaceorg.jboss.tm.XAResourceWrapper
-
getJndiName
- Specified by:
getJndiNamein interfaceorg.jboss.tm.XAResourceWrapper
-
commit
- Specified by:
commitin interfaceXAResource- Throws:
XAException
-
end
- Specified by:
endin interfaceXAResource- Throws:
XAException
-
forget
- Specified by:
forgetin interfaceXAResource- Throws:
XAException
-
getTransactionTimeout
- Specified by:
getTransactionTimeoutin interfaceXAResource- Throws:
XAException
-
isSameRM
- Specified by:
isSameRMin interfaceXAResource- Throws:
XAException
-
prepare
- Specified by:
preparein interfaceXAResource- Throws:
XAException
-
recover
- Specified by:
recoverin interfaceXAResource- Throws:
XAException
-
rollback
- Specified by:
rollbackin interfaceXAResource- Throws:
XAException
-
setTransactionTimeout
- Specified by:
setTransactionTimeoutin interfaceXAResource- Throws:
XAException
-
start
- Specified by:
startin interfaceXAResource- Throws:
XAException
-