Package com.j_spaces.core.client
Class XAResourceImpl
java.lang.Object
com.j_spaces.core.client.XAResourceImpl
- All Implemented Interfaces:
ActionListener,XAPResource,EventListener,XAResource
An instance of this class represents a XAResource implementation
- Version:
- 4.5
- Author:
- Guy Korland
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ISpaceProxyprotected final ExtendedTransactionManagerFields inherited from interface javax.transaction.xa.XAResource
TMENDRSCAN, TMFAIL, TMJOIN, TMNOFLAGS, TMONEPHASE, TMRESUME, TMSTARTRSCAN, TMSUCCESS, TMSUSPEND, XA_OK, XA_RDONLY -
Constructor Summary
ConstructorsConstructorDescriptionXAResourceImpl(TransactionManager txnManger, IJSpace proxy) XAResourceImpl(TransactionManager txnManger, IJSpace proxy, boolean delegatedXa, boolean resourcePerSingleTxn) Ctor -
Method Summary
Modifier and TypeMethodDescriptionvoidaction(Transaction txn) Called by ActionMaker on eventvoidprotected XidcreateGSXid(Xid xid) voidvoidgetRmid()intbooleanisSameRM(XAResource xares) intXid[]recover(int flag) voidbooleansetTransactionTimeout(int timeout) voidprotected Transaction.Created
-
Field Details
-
m_txnManger
-
_activeEmptyTransactions
-
_proxy
-
-
Constructor Details
-
XAResourceImpl
public XAResourceImpl(TransactionManager txnManger, IJSpace proxy, boolean delegatedXa, boolean resourcePerSingleTxn) Ctor- Parameters:
txnManger- transaction manger, for used inside GS.
-
XAResourceImpl
-
-
Method Details
-
getTransactionTimeout
- Specified by:
getTransactionTimeoutin interfaceXAResource- Throws:
XAException
-
setTransactionTimeout
- Specified by:
setTransactionTimeoutin interfaceXAResource- Throws:
XAException
-
isSameRM
- Specified by:
isSameRMin interfaceXAResource- Throws:
XAException
-
getRmid
- Specified by:
getRmidin interfaceXAPResource
-
recover
- Specified by:
recoverin interfaceXAResource- Throws:
XAException
-
prepare
- Specified by:
preparein interfaceXAResource- Throws:
XAException
-
forget
- Specified by:
forgetin interfaceXAResource- Throws:
XAException
-
rollback
- Specified by:
rollbackin interfaceXAResource- Throws:
XAException
-
end
- Specified by:
endin interfaceXAResource- Throws:
XAException
-
start
- Specified by:
startin interfaceXAResource- Throws:
XAException
-
startIn
- Throws:
XAException
-
commit
- Specified by:
commitin interfaceXAResource- Throws:
XAException
-
action
Description copied from interface:ActionListenerCalled by ActionMaker on event- Specified by:
actionin interfaceActionListener
-
createGSXid
-