public class XAResourceImpl extends Object implements XAResource, ActionListener
| Modifier and Type | Field and Description |
|---|---|
protected Hashtable<Xid,Xid> |
_activeEmptyTransactions |
protected ISpaceProxy |
_proxy |
protected ExtendedTransactionManager |
m_txnManger |
TMENDRSCAN, TMFAIL, TMJOIN, TMNOFLAGS, TMONEPHASE, TMRESUME, TMSTARTRSCAN, TMSUCCESS, TMSUSPEND, XA_OK, XA_RDONLY| Constructor and Description |
|---|
XAResourceImpl(TransactionManager txnManger,
IJSpace proxy) |
XAResourceImpl(TransactionManager txnManger,
IJSpace proxy,
boolean delegatedXa,
boolean resourcePerSingleTxn)
Ctor
|
| Modifier and Type | Method and Description |
|---|---|
void |
action(Transaction txn)
Called by ActionMaker on event
|
void |
commit(Xid xid,
boolean onePhase) |
protected Xid |
createGSXid(Xid xid) |
void |
end(Xid xid,
int flag) |
void |
forget(Xid xid) |
UUID |
getRmid() |
int |
getTransactionTimeout() |
boolean |
isSameRM(XAResource xares) |
int |
prepare(Xid xid) |
Xid[] |
recover(int flag) |
void |
rollback(Xid xid) |
boolean |
setTransactionTimeout(int timeout) |
void |
start(Xid xid,
int flag) |
protected Transaction.Created |
startIn(Xid xid,
int flag,
boolean setAsDefault) |
protected final ExtendedTransactionManager m_txnManger
protected ISpaceProxy _proxy
public XAResourceImpl(TransactionManager txnManger, IJSpace proxy, boolean delegatedXa, boolean resourcePerSingleTxn)
txnManger - transaction manger, for used inside GS.public XAResourceImpl(TransactionManager txnManger, IJSpace proxy)
public int getTransactionTimeout()
throws XAException
getTransactionTimeout in interface XAResourceXAExceptionpublic boolean setTransactionTimeout(int timeout)
throws XAException
setTransactionTimeout in interface XAResourceXAExceptionpublic boolean isSameRM(XAResource xares) throws XAException
isSameRM in interface XAResourceXAExceptionpublic UUID getRmid()
public Xid[] recover(int flag) throws XAException
recover in interface XAResourceXAExceptionpublic int prepare(Xid xid) throws XAException
prepare in interface XAResourceXAExceptionpublic void forget(Xid xid) throws XAException
forget in interface XAResourceXAExceptionpublic void rollback(Xid xid) throws XAException
rollback in interface XAResourceXAExceptionpublic void end(Xid xid, int flag) throws XAException
end in interface XAResourceXAExceptionpublic void start(Xid xid, int flag) throws XAException
start in interface XAResourceXAExceptionprotected Transaction.Created startIn(Xid xid, int flag, boolean setAsDefault) throws XAException
XAExceptionpublic void commit(Xid xid, boolean onePhase) throws XAException
commit in interface XAResourceXAExceptionpublic void action(Transaction txn)
ActionListeneraction in interface ActionListenerCopyright © GigaSpaces.