public class ParticipantStub extends Object implements Participant, PersistableParticipant
| Constructor and Description |
|---|
ParticipantStub(String id,
boolean durable,
W3CEndpointReference twoPCParticipant) |
| Modifier and Type | Method and Description |
|---|---|
void |
commit()
The participant should make permanent the work that it controls.
|
void |
error()
During recovery the participant can enquire as to the status of the
transaction it was registered with.
|
Vote |
prepare()
Perform any work necessary to allow it to either commit or rollback
the work performed by the Web service under the scope of the
transaction.
|
boolean |
restoreState(com.arjuna.ats.arjuna.state.InputObjectState ios)
Restore the state of the particpant from the specified input object stream.
|
void |
rollback()
The participant should undo the work that it controls.
|
boolean |
saveState(com.arjuna.ats.arjuna.state.OutputObjectState oos)
Save the state of the particpant to the specified input object stream.
|
void |
unknown()
During recovery the participant can enquire as to the status of the
transaction it was registered with.
|
public ParticipantStub(String id, boolean durable, W3CEndpointReference twoPCParticipant) throws Exception
Exceptionpublic Vote prepare() throws WrongStateException, SystemException
Participantprepare in interface ParticipantWrongStateExceptionSystemExceptionVotepublic void commit()
throws WrongStateException,
SystemException
Participantcommit in interface ParticipantWrongStateExceptionSystemExceptionpublic void rollback()
throws WrongStateException,
SystemException
Participantrollback in interface ParticipantWrongStateExceptionSystemExceptionpublic void unknown()
throws SystemException
Participantunknown in interface ParticipantSystemExceptionpublic void error()
throws SystemException
Participanterror in interface ParticipantSystemExceptionpublic boolean saveState(com.arjuna.ats.arjuna.state.OutputObjectState oos)
PersistableParticipantsaveState in interface PersistableParticipantoos - The output output stream.public boolean restoreState(com.arjuna.ats.arjuna.state.InputObjectState ios)
PersistableParticipantrestoreState in interface PersistableParticipantios - The Input object stream.Copyright © 2018 JBoss by Red Hat. All rights reserved.