Class ClosedXAResource
java.lang.Object
io.agroal.pool.wrapper.closed.ClosedXAResource
- All Implemented Interfaces:
XAResource
Sentinel implementation of
XAResource that throws XAException on all operations.- Author:
- George Gastaldi
-
Field Summary
FieldsFields inherited from interface XAResource
TMENDRSCAN, TMFAIL, TMJOIN, TMNOFLAGS, TMONEPHASE, TMRESUME, TMSTARTRSCAN, TMSUCCESS, TMSUSPEND, XA_OK, XA_RDONLY -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidintbooleanisSameRM(XAResource xares) intXid[]recover(int flag) voidbooleansetTransactionTimeout(int seconds) voidtoString()
-
Field Details
-
INSTANCE
-
-
Method Details
-
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
-
toString
-