C# Класс Apache.NMS.ActiveMQ.TransactionContext

Наследование: ISinglePhaseNotification
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
AfterCommit void
AfterRollback void
BeforeEnd void
TryRecoverBrokerTXIds XATransactionId[]

Открытые методы

Метод Описание
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 )

Приватные методы

Метод Описание
AfterCommit ( ) : void
AfterRollback ( ) : void
BeforeEnd ( ) : void
TryRecoverBrokerTXIds ( ) : XATransactionId[]

Описание методов

AddSynchronization() публичный Метод

Method AddSynchronization
public AddSynchronization ( ISynchronization synchronization ) : void
synchronization ISynchronization
Результат void

Begin() публичный Метод

public Begin ( ) : void
Результат void

Begin() публичный Метод

public Begin ( Transaction transaction ) : void
transaction Transaction
Результат void

Commit() публичный Метод

public Commit ( ) : void
Результат void

Commit() публичный Метод

public Commit ( Enlistment enlistment ) : void
enlistment Enlistment
Результат void

InDoubt() публичный Метод

public InDoubt ( Enlistment enlistment ) : void
enlistment Enlistment
Результат void

InitializeDtcTxContext() публичный Метод

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
Результат void

Prepare() публичный Метод

public Prepare ( PreparingEnlistment preparingEnlistment ) : void
preparingEnlistment PreparingEnlistment
Результат void

RemoveSynchronization() публичный Метод

public RemoveSynchronization ( ISynchronization synchronization ) : void
synchronization ISynchronization
Результат void

Rollback() публичный Метод

public Rollback ( ) : void
Результат void

Rollback() публичный Метод

public Rollback ( Enlistment enlistment ) : void
enlistment Enlistment
Результат void

SinglePhaseCommit() публичный Метод

public SinglePhaseCommit ( SinglePhaseEnlistment enlistment ) : void
enlistment SinglePhaseEnlistment
Результат void

TransactionContext() публичный Метод

public TransactionContext ( Session session )
session Session