public final class XAResourceImpl extends Object implements XAResource
XAResource implementation for an XAResourceSource.
Provides the XA interface for starting transactions, participating
in two phase commit and suspending/resuming transactions against
the XA source. Transactions are shared across all XA sources that
map to the same cache engine.TransactionContext,
XAResourceSourceTMENDRSCAN, TMFAIL, TMJOIN, TMNOFLAGS, TMONEPHASE, TMRESUME, TMSTARTRSCAN, TMSUCCESS, TMSUSPEND, XA_OK, XA_RDONLY| Constructor and Description |
|---|
XAResourceImpl(LockEngine engine,
XAResourceSource xaSource) |
| Modifier and Type | Method and Description |
|---|---|
void |
commit(Xid xid,
boolean onePhase) |
void |
end(Xid xid,
int flags) |
void |
forget(Xid xid) |
int |
getTransactionTimeout() |
boolean |
isSameRM(XAResource xaRes) |
int |
prepare(Xid xid) |
Xid[] |
recover(int flags) |
void |
rollback(Xid xid) |
boolean |
setTransactionTimeout(int timeout) |
void |
start(Xid xid,
int flags) |
public XAResourceImpl(LockEngine engine, XAResourceSource xaSource)
public void start(Xid xid, int flags) throws XAException
start in interface XAResourceXAExceptionpublic void end(Xid xid, int flags) throws XAException
end in interface XAResourceXAExceptionpublic void forget(Xid xid) throws XAException
forget in interface XAResourceXAExceptionpublic int prepare(Xid xid) throws XAException
prepare in interface XAResourceXAExceptionpublic void commit(Xid xid, boolean onePhase) throws XAException
commit in interface XAResourceXAExceptionpublic void rollback(Xid xid) throws XAException
rollback in interface XAResourceXAExceptionpublic Xid[] recover(int flags) throws XAException
recover in interface XAResourceXAExceptionpublic boolean isSameRM(XAResource xaRes) throws XAException
isSameRM in interface XAResourceXAExceptionpublic boolean setTransactionTimeout(int timeout)
setTransactionTimeout in interface XAResourcepublic int getTransactionTimeout()
getTransactionTimeout in interface XAResourceCopyright © 2014. All rights reserved.