C# Класс ReliableJournal.Replica.OperationReceiver

Pulls operations from the replicator, applying each using the provided appliers before acknowledging them.
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
OperationReceiver ( IOperationApplier applier, IStateReplicator replicator, Logger logger ) : System
Start ( CancellationToken cancellationToken ) : void

Begins pulling and applying operations.

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

Метод Описание
PullOperations ( CancellationToken cancellationToken ) : Task

Begins pulling and applying operations, first from the copy stream, then from the replication stream.

PumpOperations ( IOperationStream queue, OperationApplier apply, CancellationToken cancellationToken, TaskCompletionSource initiated = null ) : Task

Retrieves, applies, and acknowledges each operation from the provided queue.

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

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

public OperationReceiver ( IOperationApplier applier, IStateReplicator replicator, Logger logger ) : System
applier IOperationApplier
replicator IStateReplicator
logger Logger
Результат System

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

Begins pulling and applying operations.
/// The operation pump has already started. ///
public Start ( CancellationToken cancellationToken ) : void
cancellationToken System.Threading.CancellationToken The cancellation token
Результат void