public abstract class BusinessActivityManager extends Object
Constructor and Description |
---|
BusinessActivityManager() |
Modifier and Type | Method and Description |
---|---|
abstract TxContext |
currentTransaction()
The currentTransaction method returns the TxContext for the current
transaction, or null if there is none.
|
abstract BAParticipantManager |
enlistForBusinessAgreementWithCoordinatorCompletion(BusinessAgreementWithCoordinatorCompletionParticipant bawcp,
String id)
Enlist a participant for the BusinessAgreementWithCoordinatorCompletion protocol.
|
abstract BAParticipantManager |
enlistForBusinessAgreementWithParticipantCompletion(BusinessAgreementWithParticipantCompletionParticipant bap,
String id)
Enlist a participant for the BusinessAgreement protocol.
|
static BusinessActivityManager |
getBusinessActivityManager()
Get the business activity manager.
|
abstract void |
resume(TxContext txContext)
The resume method can be used to (re-)associate a thread with a
transaction(s) via its TxContext.
|
static void |
setBusinessActivityManager(BusinessActivityManager manager)
Set the business activity manager.
|
abstract TxContext |
suspend()
A thread of control may require periods of non-transactionality so that
it may perform work that is not associated with a specific transaction.
|
public static BusinessActivityManager getBusinessActivityManager()
public static void setBusinessActivityManager(BusinessActivityManager manager)
manager
- The business activity manager.public abstract BAParticipantManager enlistForBusinessAgreementWithParticipantCompletion(BusinessAgreementWithParticipantCompletionParticipant bap, String id) throws WrongStateException, UnknownTransactionException, SystemException
WrongStateException
UnknownTransactionException
SystemException
public abstract BAParticipantManager enlistForBusinessAgreementWithCoordinatorCompletion(BusinessAgreementWithCoordinatorCompletionParticipant bawcp, String id) throws WrongStateException, UnknownTransactionException, SystemException
WrongStateException
UnknownTransactionException
SystemException
public abstract void resume(TxContext txContext) throws UnknownTransactionException, SystemException
public abstract TxContext suspend() throws SystemException
SystemException
public abstract TxContext currentTransaction() throws SystemException
SystemException
Copyright © 2018 JBoss by Red Hat. All rights reserved.