Package io.agroal.test
Interface MockXAResource
-
- All Superinterfaces:
XAResource
- All Known Implementing Classes:
MockXAResource.Empty
public interface MockXAResource extends XAResource
- Author:
- Luis Barreiro
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classMockXAResource.Empty
-
Field Summary
-
Fields inherited from interface javax.transaction.xa.XAResource
TMENDRSCAN, TMFAIL, TMJOIN, TMNOFLAGS, TMONEPHASE, TMRESUME, TMSTARTRSCAN, TMSUCCESS, TMSUSPEND, XA_OK, XA_RDONLY
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default voidcommit(Xid xid, boolean b)default voidend(Xid xid, int i)default voidforget(Xid xid)default intgetTransactionTimeout()default booleanisSameRM(XAResource xaResource)default intprepare(Xid xid)default Xid[]recover(int i)default voidrollback(Xid xid)default booleansetTransactionTimeout(int i)default voidstart(Xid xid, int i)
-
-
-
Method Detail
-
commit
default void commit(Xid xid, boolean b) throws XAException
- Specified by:
commitin interfaceXAResource- Throws:
XAException
-
end
default void end(Xid xid, int i) throws XAException
- Specified by:
endin interfaceXAResource- Throws:
XAException
-
forget
default void forget(Xid xid) throws XAException
- Specified by:
forgetin interfaceXAResource- Throws:
XAException
-
getTransactionTimeout
default int getTransactionTimeout() throws XAException- Specified by:
getTransactionTimeoutin interfaceXAResource- Throws:
XAException
-
isSameRM
default boolean isSameRM(XAResource xaResource) throws XAException
- Specified by:
isSameRMin interfaceXAResource- Throws:
XAException
-
prepare
default int prepare(Xid xid) throws XAException
- Specified by:
preparein interfaceXAResource- Throws:
XAException
-
recover
default Xid[] recover(int i) throws XAException
- Specified by:
recoverin interfaceXAResource- Throws:
XAException
-
rollback
default void rollback(Xid xid) throws XAException
- Specified by:
rollbackin interfaceXAResource- Throws:
XAException
-
setTransactionTimeout
default boolean setTransactionTimeout(int i) throws XAException- Specified by:
setTransactionTimeoutin interfaceXAResource- Throws:
XAException
-
start
default void start(Xid xid, int i) throws XAException
- Specified by:
startin interfaceXAResource- Throws:
XAException
-
-