Class RemoteBAController
- java.lang.Object
-
- org.jboss.narayana.compensations.internal.remote.RemoteBAController
-
- All Implemented Interfaces:
BAController
public class RemoteBAController extends Object implements BAController
- Author:
- [email protected] 19/04/2014
-
-
Constructor Summary
Constructors Constructor Description RemoteBAController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
beginBusinessActivity()
void
cancelBusinessActivity()
void
closeBusinessActivity()
void
completeBusinessActivity(boolean isException)
ParticipantManager
enlist(Class<? extends CompensationHandler> compensationHandlerClass, Class<? extends ConfirmationHandler> confirmationHandlerClass, Class<? extends TransactionLoggedHandler> transactionLoggedHandlerClass)
ParticipantManager
enlist(CompensationHandler compensationHandler, ConfirmationHandler confirmationHandler, TransactionLoggedHandler transactionLoggedHandler)
Object
getCurrentTransaction()
boolean
isBARunning()
void
resume(Object context)
Object
suspend()
-
-
-
Method Detail
-
beginBusinessActivity
public void beginBusinessActivity() throws com.arjuna.wst.WrongStateException, com.arjuna.wst.SystemException
- Specified by:
beginBusinessActivity
in interfaceBAController
- Throws:
com.arjuna.wst.WrongStateException
com.arjuna.wst.SystemException
-
closeBusinessActivity
public void closeBusinessActivity() throws com.arjuna.wst.WrongStateException, com.arjuna.wst.UnknownTransactionException, com.arjuna.wst.TransactionRolledBackException, com.arjuna.wst.SystemException
- Specified by:
closeBusinessActivity
in interfaceBAController
- Throws:
com.arjuna.wst.WrongStateException
com.arjuna.wst.UnknownTransactionException
com.arjuna.wst.TransactionRolledBackException
com.arjuna.wst.SystemException
-
cancelBusinessActivity
public void cancelBusinessActivity() throws com.arjuna.wst.WrongStateException, com.arjuna.wst.UnknownTransactionException, com.arjuna.wst.SystemException
- Specified by:
cancelBusinessActivity
in interfaceBAController
- Throws:
com.arjuna.wst.WrongStateException
com.arjuna.wst.UnknownTransactionException
com.arjuna.wst.SystemException
-
completeBusinessActivity
public void completeBusinessActivity(boolean isException) throws com.arjuna.wst.WrongStateException, com.arjuna.wst.UnknownTransactionException, com.arjuna.wst.SystemException
- Specified by:
completeBusinessActivity
in interfaceBAController
- Throws:
com.arjuna.wst.WrongStateException
com.arjuna.wst.UnknownTransactionException
com.arjuna.wst.SystemException
-
isBARunning
public boolean isBARunning()
- Specified by:
isBARunning
in interfaceBAController
-
suspend
public Object suspend() throws Exception
- Specified by:
suspend
in interfaceBAController
- Throws:
Exception
-
resume
public void resume(Object context) throws Exception
- Specified by:
resume
in interfaceBAController
- Throws:
Exception
-
getCurrentTransaction
public Object getCurrentTransaction() throws Exception
- Specified by:
getCurrentTransaction
in interfaceBAController
- Throws:
Exception
-
enlist
public ParticipantManager enlist(Class<? extends CompensationHandler> compensationHandlerClass, Class<? extends ConfirmationHandler> confirmationHandlerClass, Class<? extends TransactionLoggedHandler> transactionLoggedHandlerClass) throws Exception
- Specified by:
enlist
in interfaceBAController
- Throws:
Exception
-
enlist
public ParticipantManager enlist(CompensationHandler compensationHandler, ConfirmationHandler confirmationHandler, TransactionLoggedHandler transactionLoggedHandler) throws Exception
- Specified by:
enlist
in interfaceBAController
- Throws:
Exception
-
-