public class DisjointXAResource extends java.lang.Object implements XAResource
TMENDRSCAN, TMFAIL, TMJOIN, TMNOFLAGS, TMONEPHASE, TMRESUME, TMSTARTRSCAN, TMSUCCESS, TMSUSPEND, XA_OK, XA_RDONLY| Constructor and Description |
|---|
DisjointXAResource(XAResource resource)
Creates a new DisjointXAResource
|
| Modifier and Type | Method and Description |
|---|---|
void |
commit(Xid xid,
boolean onePhase)
Commits the resource
|
void |
end(Xid xid,
int flags)
Starts the resource.
|
void |
forget(Xid xid)
Forgets the transaction
|
int |
getTransactionTimeout()
Gets the transaction timeout.
|
XAResource |
getXAResource()
Returns the underlying resource.
|
boolean |
isSameRM(XAResource resource)
Returns true if the underlying RM is the same.
|
int |
prepare(Xid xid)
Rolls the resource back
|
Xid[] |
recover(int flags)
Rolls the resource back
|
void |
rollback(Xid xid)
Rolls the resource back
|
boolean |
setTransactionTimeout(int seconds)
Sets the transaction timeout.
|
void |
start(Xid xid,
int flags)
Starts the resource.
|
java.lang.String |
toString() |
public DisjointXAResource(XAResource resource)
public XAResource getXAResource()
public boolean setTransactionTimeout(int seconds)
throws XAException
setTransactionTimeout in interface XAResourceXAExceptionpublic int getTransactionTimeout()
throws XAException
getTransactionTimeout in interface XAResourceXAExceptionpublic boolean isSameRM(XAResource resource) throws XAException
isSameRM in interface XAResourceXAExceptionpublic void start(Xid xid, int flags) throws XAException
start in interface XAResourceXAExceptionpublic void end(Xid xid, int flags) throws XAException
end 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 void forget(Xid xid) throws XAException
forget in interface XAResourceXAExceptionpublic java.lang.String toString()
toString in class java.lang.Object