Package com.arjuna.wst11.stub
Class SubordinateVolatile2PCStub
java.lang.Object
com.arjuna.wst11.stub.SubordinateVolatile2PCStub
- All Implemented Interfaces:
Participant
,Volatile2PCParticipant
A volatile participant registered on behalf of an interposed WS-AT coordinator in order to ensure that
volatile participants in the subtransaction are prepared at the right time.
-
Constructor Summary
ConstructorDescriptionSubordinateVolatile2PCStub
(com.arjuna.mwlabs.wscf.model.twophase.arjunacore.subordinate.SubordinateATCoordinator coordinator) -
Method Summary
Modifier and TypeMethodDescriptionvoid
commit()
this is called as part of the after completion processing and should ensure that the interposed coordinator performs its afterCompletion processingvoid
error()
this should never get calledprepare()
This will be called when the parent coordinator is preparing its volatile participants and should ensure that the interposed cooordinator does the same.void
rollback()
this is called as part of the after completion processing and should ensure that the interposed coordinator performs its afterCompletion processingvoid
unknown()
this should never get called
-
Constructor Details
-
SubordinateVolatile2PCStub
public SubordinateVolatile2PCStub(com.arjuna.mwlabs.wscf.model.twophase.arjunacore.subordinate.SubordinateATCoordinator coordinator)
-
-
Method Details
-
prepare
This will be called when the parent coordinator is preparing its volatile participants and should ensure that the interposed cooordinator does the same.- Specified by:
prepare
in interfaceParticipant
- Returns:
- the Vote returned by the subordinate coordinator.
- Throws:
WrongStateException
- if the subordinate coordinator does the sameSystemException
- if the subordinate coordinator does the same- See Also:
-
commit
this is called as part of the after completion processing and should ensure that the interposed coordinator performs its afterCompletion processing- Specified by:
commit
in interfaceParticipant
- Throws:
WrongStateException
SystemException
-
rollback
this is called as part of the after completion processing and should ensure that the interposed coordinator performs its afterCompletion processing- Specified by:
rollback
in interfaceParticipant
- Throws:
WrongStateException
SystemException
-
unknown
this should never get called- Specified by:
unknown
in interfaceParticipant
- Throws:
SystemException
-
error
this should never get called- Specified by:
error
in interfaceParticipant
- Throws:
SystemException
-