Class RemoteParticipant
- java.lang.Object
-
- org.jboss.narayana.compensations.internal.remote.RemoteParticipant
-
- All Implemented Interfaces:
com.arjuna.wst.BusinessAgreementWithParticipantCompletionParticipant
,com.arjuna.wst11.ConfirmCompletedParticipant
,BAParticipant
public class RemoteParticipant extends Object implements BAParticipant, com.arjuna.wst.BusinessAgreementWithParticipantCompletionParticipant, com.arjuna.wst11.ConfirmCompletedParticipant
- Author:
- [email protected] 22/03/2013
-
-
Constructor Summary
Constructors Constructor Description RemoteParticipant(CompensationHandler compensationHandler, ConfirmationHandler confirmationHandler, TransactionLoggedHandler transactionLoggedHandler, Object currentTX)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cancel()
void
close()
void
compensate()
void
confirmCompleted(boolean confirmed)
void
error()
String
status()
void
unknown()
-
-
-
Constructor Detail
-
RemoteParticipant
public RemoteParticipant(CompensationHandler compensationHandler, ConfirmationHandler confirmationHandler, TransactionLoggedHandler transactionLoggedHandler, Object currentTX)
-
-
Method Detail
-
confirmCompleted
public void confirmCompleted(boolean confirmed)
- Specified by:
confirmCompleted
in interfaceBAParticipant
- Specified by:
confirmCompleted
in interfacecom.arjuna.wst11.ConfirmCompletedParticipant
-
close
public void close() throws com.arjuna.wst.WrongStateException, com.arjuna.wst.SystemException
- Specified by:
close
in interfaceBAParticipant
- Specified by:
close
in interfacecom.arjuna.wst.BusinessAgreementWithParticipantCompletionParticipant
- Throws:
com.arjuna.wst.WrongStateException
com.arjuna.wst.SystemException
-
cancel
public void cancel() throws com.arjuna.wst.FaultedException, com.arjuna.wst.WrongStateException, com.arjuna.wst.SystemException
- Specified by:
cancel
in interfaceBAParticipant
- Specified by:
cancel
in interfacecom.arjuna.wst.BusinessAgreementWithParticipantCompletionParticipant
- Throws:
com.arjuna.wst.FaultedException
com.arjuna.wst.WrongStateException
com.arjuna.wst.SystemException
-
compensate
public void compensate() throws com.arjuna.wst.FaultedException, com.arjuna.wst.WrongStateException, com.arjuna.wst.SystemException
- Specified by:
compensate
in interfaceBAParticipant
- Specified by:
compensate
in interfacecom.arjuna.wst.BusinessAgreementWithParticipantCompletionParticipant
- Throws:
com.arjuna.wst.FaultedException
com.arjuna.wst.WrongStateException
com.arjuna.wst.SystemException
-
status
public String status() throws com.arjuna.wst.SystemException
- Specified by:
status
in interfacecom.arjuna.wst.BusinessAgreementWithParticipantCompletionParticipant
- Throws:
com.arjuna.wst.SystemException
-
unknown
public void unknown() throws com.arjuna.wst.SystemException
- Specified by:
unknown
in interfacecom.arjuna.wst.BusinessAgreementWithParticipantCompletionParticipant
- Throws:
com.arjuna.wst.SystemException
-
error
public void error() throws com.arjuna.wst.SystemException
- Specified by:
error
in interfacecom.arjuna.wst.BusinessAgreementWithParticipantCompletionParticipant
- Throws:
com.arjuna.wst.SystemException
-
-