C# Class Apache.NMS.ActiveMQ.TransactionContext

Inheritance: ISinglePhaseNotification
Show file Open project: ThorTech/apache-nms Class Usage Examples

Private Properties

Property Type Description
AfterCommit void
AfterRollback void
BeforeEnd void
TryRecoverBrokerTXIds XATransactionId[]

Public Methods

Method Description
AddSynchronization ( ISynchronization synchronization ) : void

Method AddSynchronization

Begin ( ) : void
Begin ( Transaction transaction ) : void
Commit ( ) : void
Commit ( Enlistment enlistment ) : void
InDoubt ( Enlistment enlistment ) : void
InitializeDtcTxContext ( ) : void

Should be called from NetTxSession when created to check if any TX data is stored for recovery and whether the Broker has matching info stored. If an Transaction is found that belongs to this client and is still alive on the Broker it will be recovered, otherwise the stored data should be cleared.

Prepare ( PreparingEnlistment preparingEnlistment ) : void
RemoveSynchronization ( ISynchronization synchronization ) : void
Rollback ( ) : void
Rollback ( Enlistment enlistment ) : void
SinglePhaseCommit ( SinglePhaseEnlistment enlistment ) : void
TransactionContext ( Session session )

Private Methods

Method Description
AfterCommit ( ) : void
AfterRollback ( ) : void
BeforeEnd ( ) : void
TryRecoverBrokerTXIds ( ) : XATransactionId[]

Method Details

AddSynchronization() public method

Method AddSynchronization
public AddSynchronization ( ISynchronization synchronization ) : void
synchronization ISynchronization
return void

Begin() public method

public Begin ( ) : void
return void

Begin() public method

public Begin ( Transaction transaction ) : void
transaction Transaction
return void

Commit() public method

public Commit ( ) : void
return void

Commit() public method

public Commit ( Enlistment enlistment ) : void
enlistment Enlistment
return void

InDoubt() public method

public InDoubt ( Enlistment enlistment ) : void
enlistment Enlistment
return void

InitializeDtcTxContext() public method

Should be called from NetTxSession when created to check if any TX data is stored for recovery and whether the Broker has matching info stored. If an Transaction is found that belongs to this client and is still alive on the Broker it will be recovered, otherwise the stored data should be cleared.
public InitializeDtcTxContext ( ) : void
return void

Prepare() public method

public Prepare ( PreparingEnlistment preparingEnlistment ) : void
preparingEnlistment PreparingEnlistment
return void

RemoveSynchronization() public method

public RemoveSynchronization ( ISynchronization synchronization ) : void
synchronization ISynchronization
return void

Rollback() public method

public Rollback ( ) : void
return void

Rollback() public method

public Rollback ( Enlistment enlistment ) : void
enlistment Enlistment
return void

SinglePhaseCommit() public method

public SinglePhaseCommit ( SinglePhaseEnlistment enlistment ) : void
enlistment SinglePhaseEnlistment
return void

TransactionContext() public method

public TransactionContext ( Session session )
session Session