public class XAResourceTransaction extends java.lang.Object implements ResourceTransaction, Participant
READ_ONLY| Modifier and Type | Method and Description |
|---|---|
void |
commit(boolean onePhase) |
boolean |
equals(java.lang.Object o)
Absolutely necessary for coordinator to work correctly
|
void |
forget() |
java.lang.String |
getResourceName() |
java.lang.Object |
getState() |
java.lang.String |
getTid() |
java.lang.String |
getURI() |
javax.transaction.xa.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 |
isRecoverable() |
boolean |
isXaSuspended()
Test if the resource has been ended with TMSUSPEND.
|
int |
prepare() |
void |
resume() |
void |
rollback() |
void |
setCascadeList(java.util.Map<java.lang.String,java.lang.Integer> allParticipants) |
void |
setGlobalSiblingCount(int count) |
void |
setXAResource(javax.transaction.xa.XAResource xaresource)
Set the XAResource attribute.
|
void |
suspend() |
protected void |
testOrRefreshXAResourceFor2PC() |
java.lang.String |
toString() |
void |
xaResume()
Perform an xa resume
|
void |
xaSuspend()
Perform an XA suspend.
|
protected void testOrRefreshXAResourceFor2PC()
throws javax.transaction.xa.XAException
javax.transaction.xa.XAExceptionpublic java.lang.String getTid()
ResourceTransaction.public void suspend()
throws ResourceException
suspend in interface ResourceTransactionResourceExceptionResourceTransaction.public void resume()
throws ResourceException
resume in interface ResourceTransactionResourceExceptionResourceTransaction.public void setCascadeList(java.util.Map<java.lang.String,java.lang.Integer> allParticipants)
throws SysException
setCascadeList in interface ParticipantSysExceptionParticipantpublic java.lang.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(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic javax.transaction.xa.Xid getXid()
public void setXAResource(javax.transaction.xa.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 javax.transaction.xa.XAException
javax.transaction.xa.XAExceptionpublic void xaResume()
throws javax.transaction.xa.XAException
javax.transaction.xa.XAExceptionpublic boolean isXaSuspended()
public boolean isActive()
public java.lang.String getURI()
getURI in interface ParticipantParticipant.getURI()public java.lang.String getResourceName()
getResourceName in interface Participantpublic boolean isRecoverable()
isRecoverable in interface ParticipantCopyright © 2018. All Rights Reserved.