|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.infinispan.transaction.xa.TransactionXaAdapter
public class TransactionXaAdapter
This acts both as an local CacheTransaction
and implementor of an XAResource
that will be called by tx manager on various tx stages.
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 | |
---|---|
TransactionXaAdapter(LocalXaTransaction localTransaction,
TransactionTable txTable,
Configuration configuration,
RecoveryManager rm,
TransactionCoordinator txCoordinator)
|
Method Summary | |
---|---|
void |
commit(Xid externalXid,
boolean isOnePhase)
Same comment as for prepare(javax.transaction.xa.Xid) applies for commit. |
void |
end(Xid externalXid,
int i)
|
void |
forget(Xid externalXid)
|
LocalXaTransaction |
getLocalTransaction()
|
int |
getTransactionTimeout()
|
boolean |
isSameRM(XAResource xaResource)
the only situation in which it returns true is when the other xa resource pertains to the same cache, on the same node. |
int |
prepare(Xid externalXid)
This can be call for any transaction object. |
Xid[] |
recover(int flag)
|
void |
rollback(Xid externalXid)
Same comment as for prepare(javax.transaction.xa.Xid) applies for commit. |
boolean |
setTransactionTimeout(int i)
|
void |
start(Xid externalXid,
int i)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TransactionXaAdapter(LocalXaTransaction localTransaction, TransactionTable txTable, Configuration configuration, RecoveryManager rm, TransactionCoordinator txCoordinator)
Method Detail |
---|
public int prepare(Xid externalXid) throws XAException
prepare
in interface XAResource
XAException
public void commit(Xid externalXid, boolean isOnePhase) throws XAException
prepare(javax.transaction.xa.Xid)
applies for commit.
commit
in interface XAResource
XAException
public void rollback(Xid externalXid) throws XAException
prepare(javax.transaction.xa.Xid)
applies for commit.
rollback
in interface XAResource
XAException
public void start(Xid externalXid, int i) throws XAException
start
in interface XAResource
XAException
public void end(Xid externalXid, int i) throws XAException
end
in interface XAResource
XAException
public void forget(Xid externalXid) throws XAException
forget
in interface XAResource
XAException
public int getTransactionTimeout() throws XAException
getTransactionTimeout
in interface XAResource
XAException
public boolean isSameRM(XAResource xaResource) throws XAException
isSameRM
in interface XAResource
XAException
public Xid[] recover(int flag) throws XAException
recover
in interface XAResource
XAException
public boolean setTransactionTimeout(int i) throws XAException
setTransactionTimeout
in interface XAResource
XAException
public String toString()
toString
in class Object
public LocalXaTransaction getLocalTransaction()
|
--> | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |