Class BaseXAResource
java.lang.Object
io.agroal.narayana.BaseXAResource
- All Implemented Interfaces:
XAResource
- Direct Known Subclasses:
FirstResourceBaseXAResource
- Author:
- Luis Barreiro, Jesper Pedersen
-
Field Summary
Fields inherited from interface XAResource
TMENDRSCAN, TMFAIL, TMJOIN, TMNOFLAGS, TMONEPHASE, TMRESUME, TMSTARTRSCAN, TMSUCCESS, TMSUSPEND, XA_OK, XA_RDONLY -
Constructor Summary
ConstructorsConstructorDescriptionBaseXAResource(io.agroal.api.transaction.TransactionAware transactionAware, XAResource xaResource, String jndiName) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidintbooleanisSameRM(XAResource xaRes) intXid[]recover(int flag) voidbooleansetTransactionTimeout(int seconds) void
-
Constructor Details
-
BaseXAResource
public BaseXAResource(io.agroal.api.transaction.TransactionAware transactionAware, XAResource xaResource, String jndiName)
-
-
Method Details
-
getResource
-
getProductName
-
getProductVersion
-
getJndiName
-
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
-