public class AtomicTransaction extends Object
Modifier and Type | Field and Description |
---|---|
protected com.arjuna.ats.internal.jts.ControlWrapper |
_theAction |
protected Status |
_theStatus |
protected int |
_timeout |
static int |
NESTED |
static int |
TOP_LEVEL
The types of transactions which can be created.
|
Modifier | Constructor and Description |
---|---|
|
AtomicTransaction()
Create a new transaction.
|
protected |
AtomicTransaction(com.arjuna.ats.internal.jts.ControlWrapper tx) |
Modifier and Type | Method and Description |
---|---|
void |
begin()
Start the transaction.
|
void |
commit(boolean report_heuristics) |
Control |
control() |
boolean |
equals(Object obj) |
void |
finalize() |
Status |
get_status() |
int |
get_timeout() |
String |
get_transaction_name() |
PropagationContext |
get_txcontext() |
Uid |
get_uid() |
protected Status |
getStatus() |
int |
getTimeout() |
int |
hashCode() |
RecoveryCoordinator |
registerResource(Resource r)
Register the specified resource with this transaction.
|
void |
registerSubtranAware(SubtransactionAwareResource r)
Register the specified subtransaction aware resource with this
transaction.
|
void |
registerSynchronization(Synchronization sync)
Register the specified synchronization with this transaction.
|
void |
resume()
Resume this transaction.
|
void |
rollback() |
void |
rollbackOnly()
Allow action commit to be supressed.
|
void |
set_timeout(int seconds)
Set the transaction timeout.
|
void |
suspend()
Suspend this transaction from the current thread.
|
protected boolean |
validTransaction()
If this transaction current? Assume we have checked that we are actually
a transaction!
If not valid then abort this transaction here.
|
public static final int TOP_LEVEL
public static final int NESTED
protected com.arjuna.ats.internal.jts.ControlWrapper _theAction
protected Status _theStatus
protected int _timeout
public AtomicTransaction()
protected AtomicTransaction(com.arjuna.ats.internal.jts.ControlWrapper tx)
public String get_transaction_name() throws SystemException
SystemException
public void begin() throws SubtransactionsUnavailable, SystemException
SubtransactionsUnavailable
- if subtransactions have been disabled, and the invoking
thread already has a transaction associated with it.INVALID_TRANSACTION
- if the transaction has already begun or has completed.SystemException
public void commit(boolean report_heuristics) throws NoTransaction, HeuristicMixed, HeuristicHazard, WrongTransaction, SystemException
public void rollback() throws NoTransaction, WrongTransaction, SystemException
public void set_timeout(int seconds) throws SystemException
SystemException
public int get_timeout() throws SystemException
SystemException
public int getTimeout() throws SystemException
SystemException
public PropagationContext get_txcontext() throws Inactive, SystemException
Inactive
- if the current transaction is no longer in the active
phase.SystemException
public RecoveryCoordinator registerResource(Resource r) throws Inactive, SystemException
Inactive
- if the current transaction is no longer in the active
phase.SystemException
public void registerSubtranAware(SubtransactionAwareResource r) throws Inactive, NotSubtransaction, SystemException
Inactive
- if this transaction is no longer in the active phase.NotSubtransaction
- if this transaction is not a subtransaction.SystemException
public void registerSynchronization(Synchronization sync) throws Inactive, SynchronizationUnavailable, SystemException
Inactive
- if this transaction is no longer in the active phase.SynchronizationUnavailable
- if this transaction it not a top-level transaction.SystemException
public Control control() throws NoTransaction, SystemException
NoTransaction
SystemException
public void suspend() throws NoTransaction, WrongTransaction, SystemException
NoTransaction
- if there is no current transaction.WrongTransaction
- if the transaction associated with the current thread is
different from this thread.SystemException
public void resume() throws InvalidControl, SystemException
InvalidControl
- if this transaction is invalid.SystemException
public Status get_status() throws SystemException
SystemException
public void rollbackOnly() throws SystemException, NoTransaction
SystemException
NoTransaction
public Uid get_uid()
protected final boolean validTransaction()
protected final Status getStatus()
Copyright © 2015 JBoss by Red Hat. All Rights Reserved.