Package io.agroal.narayana
Class RecoveryXAResource
- java.lang.Object
-
- io.agroal.narayana.RecoveryXAResource
-
- All Implemented Interfaces:
AutoCloseable,XAResource,org.jboss.tm.XAResourceWrapper
public class RecoveryXAResource extends Object implements AutoCloseable, org.jboss.tm.XAResourceWrapper
-
-
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
Constructors Constructor Description RecoveryXAResource(XAConnection connection, String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidcommit(Xid xid, boolean onePhase)voidend(Xid xid, int flags)voidforget(Xid xid)StringgetJndiName()StringgetProductName()StringgetProductVersion()XAResourcegetResource()intgetTransactionTimeout()booleanisSameRM(XAResource xares)intprepare(Xid xid)Xid[]recover(int flag)voidrollback(Xid xid)booleansetTransactionTimeout(int seconds)voidstart(Xid xid, int flags)
-
-
-
Constructor Detail
-
RecoveryXAResource
public RecoveryXAResource(XAConnection connection, String name) throws SQLException
- Throws:
SQLException
-
-
Method Detail
-
recover
public Xid[] recover(int flag) throws XAException
- Specified by:
recoverin interfaceXAResource- Throws:
XAException
-
commit
public void commit(Xid xid, boolean onePhase) throws XAException
- Specified by:
commitin interfaceXAResource- Throws:
XAException
-
end
public void end(Xid xid, int flags) throws XAException
- Specified by:
endin interfaceXAResource- Throws:
XAException
-
forget
public void forget(Xid xid) throws XAException
- Specified by:
forgetin interfaceXAResource- Throws:
XAException
-
getTransactionTimeout
public int getTransactionTimeout() throws XAException- Specified by:
getTransactionTimeoutin interfaceXAResource- Throws:
XAException
-
isSameRM
public boolean isSameRM(XAResource xares) throws XAException
- Specified by:
isSameRMin interfaceXAResource- Throws:
XAException
-
prepare
public int prepare(Xid xid) throws XAException
- Specified by:
preparein interfaceXAResource- Throws:
XAException
-
rollback
public void rollback(Xid xid) throws XAException
- Specified by:
rollbackin interfaceXAResource- Throws:
XAException
-
setTransactionTimeout
public boolean setTransactionTimeout(int seconds) throws XAException- Specified by:
setTransactionTimeoutin interfaceXAResource- Throws:
XAException
-
start
public void start(Xid xid, int flags) throws XAException
- Specified by:
startin interfaceXAResource- Throws:
XAException
-
close
public void close() throws XAException- Specified by:
closein interfaceAutoCloseable- Throws:
XAException
-
getResource
public XAResource getResource()
- Specified by:
getResourcein interfaceorg.jboss.tm.XAResourceWrapper
-
getProductName
public String getProductName()
- Specified by:
getProductNamein interfaceorg.jboss.tm.XAResourceWrapper
-
getProductVersion
public String getProductVersion()
- Specified by:
getProductVersionin interfaceorg.jboss.tm.XAResourceWrapper
-
getJndiName
public String getJndiName()
- Specified by:
getJndiNamein interfaceorg.jboss.tm.XAResourceWrapper
-
-