public class XAResourceTransaction extends Object implements ResourceTransaction, Participant
READ_ONLY| Modifier and Type | Method and Description |
|---|---|
void |
commit(boolean onePhase) |
boolean |
equals(Object o)
Absolutely necessary for coordinator to work correctly
|
void |
forget() |
String |
getResourceName() |
Object |
getState() |
String |
getTid() |
String |
getURI() |
Xid |
getXid()
Get the Xid.
|
int |
hashCode()
Absolutely necessary for coordinator to work correctly
|
boolean |
isActive()
Test if the restx is active (in use).
|
boolean |
isXaSuspended()
Test if the resource has been ended with TMSUSPEND.
|
int |
prepare() |
void |
resume() |
void |
rollback() |
void |
setCascadeList(Map<String,Integer> allParticipants) |
void |
setGlobalSiblingCount(int count) |
void |
setXAResource(XAResource xaresource)
Set the XAResource attribute.
|
void |
suspend() |
protected void |
testOrRefreshXAResourceFor2PC() |
String |
toString() |
void |
xaResume()
Perform an xa resume
|
void |
xaSuspend()
Perform an XA suspend.
|
protected void testOrRefreshXAResourceFor2PC()
throws XAException
XAExceptionpublic String getTid()
ResourceTransaction.public void suspend()
throws ResourceException
suspend in interface ResourceTransactionResourceExceptionResourceTransaction.public void resume()
throws ResourceException
resume in interface ResourceTransactionResourceExceptionResourceTransaction.public void setCascadeList(Map<String,Integer> allParticipants) throws SysException
setCascadeList in interface ParticipantSysExceptionParticipantpublic Object getState()
public void setGlobalSiblingCount(int count)
setGlobalSiblingCount in interface ParticipantParticipantpublic void forget()
forget in interface ParticipantParticipantpublic int prepare()
throws RollbackException,
HeurHazardException,
HeurMixedException,
SysException
prepare in interface ParticipantRollbackExceptionHeurHazardExceptionHeurMixedExceptionSysExceptionParticipantpublic void rollback()
throws HeurCommitException,
HeurMixedException,
HeurHazardException,
SysException
rollback in interface ParticipantHeurCommitExceptionHeurMixedExceptionHeurHazardExceptionSysExceptionParticipant.public void commit(boolean onePhase)
throws HeurRollbackException,
HeurHazardException,
HeurMixedException,
RollbackException,
SysException
commit in interface ParticipantHeurRollbackExceptionHeurHazardExceptionHeurMixedExceptionRollbackExceptionSysExceptionParticipantpublic boolean equals(Object o)
public int hashCode()
public Xid getXid()
public void setXAResource(XAResource xaresource)
xaresource - The new XAResource to use. This new XAResource represents the
new connection to the XA database. Necessary because on reuse,
the old xaresource may be in use by another thread, for
another transaction.public void xaSuspend()
throws XAException
XAExceptionpublic void xaResume()
throws XAException
XAExceptionpublic boolean isXaSuspended()
public boolean isActive()
public String getURI()
getURI in interface ParticipantParticipant.getURI()public String getResourceName()
getResourceName in interface ParticipantCopyright © 2022. All rights reserved.