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
Exception
public Vote prepare() throws WrongStateException, SystemException
Participant
prepare
in interface Participant
WrongStateException
SystemException
Vote
public void commit() throws WrongStateException, SystemException
Participant
commit
in interface Participant
WrongStateException
SystemException
public void rollback() throws WrongStateException, SystemException
Participant
rollback
in interface Participant
WrongStateException
SystemException
public void unknown() throws SystemException
Participant
unknown
in interface Participant
SystemException
public void error() throws SystemException
Participant
error
in interface Participant
SystemException
public boolean saveState(com.arjuna.ats.arjuna.state.OutputObjectState oos)
PersistableParticipant
saveState
in interface PersistableParticipant
oos
- The output output stream.public boolean restoreState(com.arjuna.ats.arjuna.state.InputObjectState ios)
PersistableParticipant
restoreState
in interface PersistableParticipant
ios
- The Input object stream.Copyright © 2017 JBoss by Red Hat. All rights reserved.