public abstract class UserBusinessActivity extends Object
Modifier and Type | Field and Description |
---|---|
static int |
ATOMIC_OUTCOME |
static int |
MIXED_OUTCOME |
Constructor and Description |
---|
UserBusinessActivity() |
Modifier and Type | Method and Description |
---|---|
abstract void |
begin()
Start a new business activity with atomic outcome.
|
abstract void |
begin(int timeout)
Start a new BA with atomic outcome and the specified timeout as
its lifetime.
|
abstract void |
cancel()
If the BA must undo its work then the cancel method is used.
|
abstract void |
close()
The BA is normally terminated by the close method.
|
abstract void |
complete()
If participants have registered for the BusinessAgreementWithComplete
protocol then they will be expecting the application to inform them
when all work intended for them has been sent (and responded to).
|
static UserBusinessActivity |
getUserBusinessActivity()
Get the user business activity.
|
abstract UserBusinessActivity |
getUserSubordinateBusinessActivity()
get the user subordinate business activity
this is a UserBusinessActivity whose begin method will create an interposed BA transaction
|
static void |
setUserBusinessActivity(UserBusinessActivity userBusinessActivity)
Set the user business activity.
|
abstract String |
transactionIdentifier() |
public static final int ATOMIC_OUTCOME
public static final int MIXED_OUTCOME
public static UserBusinessActivity getUserBusinessActivity()
public static void setUserBusinessActivity(UserBusinessActivity userBusinessActivity)
userBusinessActivity
- The user business activity.public abstract UserBusinessActivity getUserSubordinateBusinessActivity()
public abstract void begin() throws WrongStateException, SystemException
WrongStateException
SystemException
public abstract void begin(int timeout) throws WrongStateException, SystemException
WrongStateException
SystemException
public abstract void close() throws TransactionRolledBackException, UnknownTransactionException, SystemException, WrongStateException
public abstract void cancel() throws UnknownTransactionException, SystemException, WrongStateException
public abstract void complete() throws UnknownTransactionException, SystemException, WrongStateException
public abstract String transactionIdentifier()
Copyright © 2016 JBoss by Red Hat. All rights reserved.