C# Class Apache.NMS.ActiveMQ.TransactionContext

Inheritance: ISinglePhaseNotification
Afficher le fichier Open project: ThorTech/apache-nms Class Usage Examples

Private Properties

Свойство Type Description
AfterCommit void
AfterRollback void
BeforeEnd void
TryRecoverBrokerTXIds XATransactionId[]

Méthodes publiques

Méthode 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

Méthode Description
AfterCommit ( ) : void
AfterRollback ( ) : void
BeforeEnd ( ) : void
TryRecoverBrokerTXIds ( ) : XATransactionId[]

Method Details

AddSynchronization() public méthode

Method AddSynchronization
public AddSynchronization ( ISynchronization synchronization ) : void
synchronization ISynchronization
Résultat void

Begin() public méthode

public Begin ( ) : void
Résultat void

Begin() public méthode

public Begin ( Transaction transaction ) : void
transaction Transaction
Résultat void

Commit() public méthode

public Commit ( ) : void
Résultat void

Commit() public méthode

public Commit ( Enlistment enlistment ) : void
enlistment Enlistment
Résultat void

InDoubt() public méthode

public InDoubt ( Enlistment enlistment ) : void
enlistment Enlistment
Résultat void

InitializeDtcTxContext() public méthode

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
Résultat void

Prepare() public méthode

public Prepare ( PreparingEnlistment preparingEnlistment ) : void
preparingEnlistment PreparingEnlistment
Résultat void

RemoveSynchronization() public méthode

public RemoveSynchronization ( ISynchronization synchronization ) : void
synchronization ISynchronization
Résultat void

Rollback() public méthode

public Rollback ( ) : void
Résultat void

Rollback() public méthode

public Rollback ( Enlistment enlistment ) : void
enlistment Enlistment
Résultat void

SinglePhaseCommit() public méthode

public SinglePhaseCommit ( SinglePhaseEnlistment enlistment ) : void
enlistment SinglePhaseEnlistment
Résultat void

TransactionContext() public méthode

public TransactionContext ( Session session )
session Session