com.atomikos.jdbc.nonxa
Class AtomikosNonXAParticipant
java.lang.Object
com.atomikos.jdbc.nonxa.AtomikosNonXAParticipant
- All Implemented Interfaces:
- DataSerializable, Participant, Serializable
public class AtomikosNonXAParticipant
- extends Object
- implements Participant, Serializable, DataSerializable
A participant for non-XA interactions. Instances are NOT recoverable in the
sense that commit/rollback will fail after prepare. This is an implicit
limitation of non-XA transactions and we want this to be made explicit in the
transaction logs.
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AtomikosNonXAParticipant
public AtomikosNonXAParticipant()
AtomikosNonXAParticipant
public AtomikosNonXAParticipant(com.atomikos.jdbc.nonxa.JtaAwareNonXaConnection connection,
String name)
recover
public boolean recover()
throws SysException
- Specified by:
recover in interface Participant
- Throws:
SysException- See Also:
Participant.recover()
setCascadeList
public void setCascadeList(Dictionary allParticipants)
throws SysException
- Specified by:
setCascadeList in interface Participant
- Throws:
SysException- See Also:
Participant.setCascadeList(java.util.Dictionary)
setGlobalSiblingCount
public void setGlobalSiblingCount(int count)
- Specified by:
setGlobalSiblingCount in interface Participant
- See Also:
Participant.setGlobalSiblingCount(int)
prepare
public int prepare()
throws RollbackException,
HeurHazardException,
HeurMixedException,
SysException
- Specified by:
prepare in interface Participant
- Throws:
RollbackException
HeurHazardException
HeurMixedException
SysException
commit
public HeuristicMessage[] commit(boolean onePhase)
throws HeurRollbackException,
HeurHazardException,
HeurMixedException,
RollbackException,
SysException
- Specified by:
commit in interface Participant
- Throws:
HeurRollbackException
HeurHazardException
HeurMixedException
RollbackException
SysException- See Also:
Participant.commit(boolean)
rollback
public HeuristicMessage[] rollback()
throws HeurCommitException,
HeurMixedException,
HeurHazardException,
SysException
- Specified by:
rollback in interface Participant
- Throws:
HeurCommitException
HeurMixedException
HeurHazardException
SysException- See Also:
Participant.rollback()
forget
public void forget()
- Specified by:
forget in interface Participant
- See Also:
Participant.forget()
getHeuristicMessages
public HeuristicMessage[] getHeuristicMessages()
- Specified by:
getHeuristicMessages in interface Participant
- See Also:
Participant.getHeuristicMessages()
getURI
public String getURI()
- Specified by:
getURI in interface Participant
setReadOnly
public void setReadOnly(boolean readOnly)
writeData
public void writeData(DataOutput out)
throws IOException
- Specified by:
writeData in interface DataSerializable
- Throws:
IOException
readData
public void readData(DataInput in)
throws IOException
- Specified by:
readData in interface DataSerializable
- Throws:
IOException
Copyright © 2014. All Rights Reserved.