public interface XAResource
| Modifier and Type | Field and Description |
|---|---|
static int |
TMENDRSCAN |
static int |
TMFAIL |
static int |
TMJOIN |
static int |
TMNOFLAGS |
static int |
TMONEPHASE |
static int |
TMRESUME |
static int |
TMSTARTRSCAN |
static int |
TMSUCCESS |
static int |
TMSUSPEND |
static int |
XA_OK |
static int |
XA_RDONLY |
| Modifier and Type | Method and Description |
|---|---|
void |
commit(Xid xid,
boolean onePhase)
Called to commit.
|
void |
end(Xid xid,
int flags)
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 xa)
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 flag)
Called to find Xid's that need recovery.
|
void |
rollback(Xid xid)
Called to roll back.
|
boolean |
setTransactionTimeout(int timeout)
Sets the transaction timeout in seconds.
|
void |
start(Xid xid,
int flags)
Called when the resource is associated with a transaction.
|
static final int TMENDRSCAN
static final int TMFAIL
static final int TMJOIN
static final int TMNOFLAGS
static final int TMONEPHASE
static final int TMRESUME
static final int TMSTARTRSCAN
static final int TMSUCCESS
static final int TMSUSPEND
static final int XA_OK
static final int XA_RDONLY
boolean isSameRM(XAResource xa) throws XAException
XAExceptionboolean setTransactionTimeout(int timeout)
throws XAException
XAExceptionint getTransactionTimeout()
throws XAException
XAExceptionvoid start(Xid xid, int flags) throws XAException
XAExceptionvoid end(Xid xid, int flags) throws XAException
XAExceptionint prepare(Xid xid) throws XAException
XAExceptionvoid commit(Xid xid, boolean onePhase) throws XAException
XAExceptionvoid rollback(Xid xid) throws XAException
XAExceptionvoid forget(Xid xid) throws XAException
XAExceptionXid[] recover(int flag) throws XAException
XAException