public class XAResourceWrapper extends java.lang.Object implements XAResource
TMENDRSCAN, TMFAIL, TMJOIN, TMNOFLAGS, TMONEPHASE, TMRESUME, TMSTARTRSCAN, TMSUCCESS, TMSUSPEND, XA_OK, XA_RDONLY| Constructor and Description |
|---|
XAResourceWrapper(ProfilerPoint profilerPoint,
XAResource xaResource) |
| Modifier and Type | Method and Description |
|---|---|
void |
commit(Xid xid,
boolean b)
Called to commit.
|
void |
end(Xid xid,
int i)
Called when the resource is is done with a transaction.
|
void |
forget(Xid xid)
Called to forget an Xid that had a heuristic commit.
|
int |
getTransactionTimeout()
Gets the transaction timeout in seconds.
|
boolean |
isSameRM(XAResource xaResource)
Returns true if the specified resource has the same RM.
|
int |
prepare(Xid xid)
Called to start the first phase of the commit.
|
Xid[] |
recover(int i)
Called to find Xid's that need recovery.
|
void |
rollback(Xid xid)
Called to roll back.
|
boolean |
setTransactionTimeout(int i)
Sets the transaction timeout in seconds.
|
void |
start(Xid xid,
int i)
Called when the resource is associated with a transaction.
|
java.lang.String |
toString() |
public XAResourceWrapper(ProfilerPoint profilerPoint, XAResource xaResource)
public void commit(Xid xid, boolean b) throws XAException
XAResourcecommit in interface XAResourceXAExceptionpublic void end(Xid xid, int i) throws XAException
XAResourceend in interface XAResourceXAExceptionpublic void forget(Xid xid) throws XAException
XAResourceforget in interface XAResourceXAExceptionpublic int getTransactionTimeout()
throws XAException
XAResourcegetTransactionTimeout in interface XAResourceXAExceptionpublic boolean isSameRM(XAResource xaResource) throws XAException
XAResourceisSameRM in interface XAResourceXAExceptionpublic int prepare(Xid xid) throws XAException
XAResourceprepare in interface XAResourceXAExceptionpublic Xid[] recover(int i) throws XAException
XAResourcerecover in interface XAResourceXAExceptionpublic void rollback(Xid xid) throws XAException
XAResourcerollback in interface XAResourceXAExceptionpublic boolean setTransactionTimeout(int i)
throws XAException
XAResourcesetTransactionTimeout in interface XAResourceXAExceptionpublic void start(Xid xid, int i) throws XAException
XAResourcestart in interface XAResourceXAExceptionpublic java.lang.String toString()
toString in class java.lang.Object